fre.tests.test_fre_yamltools_cli module

CLI Tests for the fre yamltools*

Tests the command-line-interface calls for tools in the fre yamltools suite. Each tool generally gets 3 tests:

  • fre yamltools $tool, checking for exit code 0 (fails if cli isn’t configured right)

  • fre yamltools $tool –help, checking for exit code 0 (fails if the code doesn’t run)

  • fre yamltools $tool –optionDNE, checking for exit code 2 (fails if cli isn’t configured right and thinks the tool has a –optionDNE option)

We also have one significantly more complex test for combine-yamls, which needs to verify that a command-line call to combine-yamls makes the same yaml that we expect

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools()

fre yamltools

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools_combine_cmoryaml()

fre yamltools combine-yamls for cmorization

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools_combine_help()

fre yamltools

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools_combine_opt_dne()

fre yamltools

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools_help()

fre yamltools –help

fre.tests.test_fre_yamltools_cli.test_cli_fre_yamltools_opt_dne()

fre yamltools optionDNE