fre.cmor.tests.test_cmor_run_subtool module

tests for fre.cmor.cmor_run_subtool

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_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