fre.cmor.tests.test_cmor_run_subtool module
tests for fre.cmor.cmor_run_subtool
- fre.cmor.tests.test_cmor_run_subtool.test_cmor_run_subtool_raise_value_error()
test that ValueError raised when required args are absent
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case1(capfd)
fre cmor run, test-use case
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case1_output_compare_data(capfd)
I/O data-only comparison of test case1
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case1_output_compare_metadata(capfd)
I/O metadata-only comparison of test case1
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case2(capfd)
fre cmor run, test-use case2
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case2_output_compare_data(capfd)
I/O data-only comparison of test case2
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_case2_output_compare_metadata(capfd)
I/O metadata-only comparison of test case2
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_empty_varlist()
fre cmor run, exception, variable list is empty
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_missing_mip_era(tmp_path)
KeyError when the exp config JSON has no mip_era entry.
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_no_exp_config()
fre cmor run, exception, json_exp_config DNE
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_opt_var_name_not_in_table()
fre cmor run, exception,
- fre.cmor.tests.test_cmor_run_subtool.test_fre_cmor_run_subtool_unsupported_mip_era(tmp_path)
ValueError when mip_era is present but not CMIP6 or CMIP7.
- fre.cmor.tests.test_cmor_run_subtool.test_git_cleanup()
Performs a git restore on EXP_CONFIG to avoid false positives from git’s record of changed files. It’s supposed to change as part of the test.
- fre.cmor.tests.test_cmor_run_subtool.test_setup_cmor_cmip_table_repo()
setup routine, make sure the recursively cloned tables exist
- fre.cmor.tests.test_cmor_run_subtool.test_setup_fre_cmor_run_subtool(capfd)
The routine generates a netCDF file from an ascii (cdl) file. It also checks for a ncgen output file from prev pytest runs, removes it if it’s present, and ensures the new file is created without error.
- fre.cmor.tests.test_cmor_run_subtool.test_setup_fre_cmor_run_subtool_case2(capfd)
make a copy of the input file to the slightly different name. checks for outputfile from prev pytest runs, removes it if it’s present. this routine also checks to make sure the desired input file is present