fremor.tests.test_cmor_run_subtool_cmip7 module

CMIP7-flavored tests for fremor.cmor_run_subtool

Each test mirrors a corresponding CMIP6 test in test_cmor_run_subtool.py but targets the CMIP7 experiment-configuration JSON and CMIP7-format CMOR tables.

fremor.tests.test_cmor_run_subtool_cmip7.test_cmor_run_subtool_cmip7_raise_value_error()

test that ValueError raised when required args are absent (CMIP7 version)

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case1(capfd)

fre cmor run, CMIP7 test-use case

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case1_output_compare_data(capfd)

I/O data-only comparison of CMIP7 test case1

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case1_output_compare_metadata(capfd)

I/O metadata-only comparison of CMIP7 test case1

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case2(capfd)

fre cmor run, CMIP7 test-use case2

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case2_output_compare_data(capfd)

I/O data-only comparison of CMIP7 test case2

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_case2_output_compare_metadata(capfd)

I/O metadata-only comparison of CMIP7 test case2

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_empty_varlist()

fre cmor run, exception, variable list is empty (CMIP7 version)

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_no_exp_config()

fre cmor run, exception, json_exp_config DNE (CMIP7 version)

fremor.tests.test_cmor_run_subtool_cmip7.test_fre_cmor_run_subtool_cmip7_opt_var_name_not_in_table()

fre cmor run, exception, opt_var_name not in CMIP7 table

fremor.tests.test_cmor_run_subtool_cmip7.test_setup_cmip7_cmor_table_repo()

setup routine, make sure the recursively cloned CMIP7 tables exist

fremor.tests.test_cmor_run_subtool_cmip7.test_setup_fre_cmor_run_subtool_cmip7(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. (CMIP7 version)

fremor.tests.test_cmor_run_subtool_cmip7.test_setup_fre_cmor_run_subtool_cmip7_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 (CMIP7 version)