fre.app.remap_pp_components.tests.test_remap_pp_components module
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_cdl_file_exists()
Test for the existence of cdl test files
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_create_ncfile_with_ncgen_cdl()
Check for the creation of required directories and a *.nc file from *.cdl text file using command ncgen. These files will be used as an input files for the rewrite remap tests. Test checks for success of ncgen command for each created file.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_create_static_ncfile_with_ncgen_cdl()
Check for the creation of required directories and a *.nc file from *.cdl text file using command ncgen. This file will be used as an input file for the rewrite remap tests. Test checks for success of ncgen command.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_nccmp_ncgen_remap()
This test compares the results of ncgen and rewrite_remap, making sure that the remapped files are identical.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_nccmp_ncgen_remap_ens_mem()
This test compares the results of ncgen and rewrite_remap, making sure that the remapped files are identical.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_nccmp_ncgen_remap_statics()
This test compares the results of ncgen and remap, making sure that the remapped static files are identical.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_chdir()
Test that original directory is the same as final directory. The remap tool changes into input_dir, source dir, etc., but we need to make sure the the final_dir is the fre-cli root for testing purposes (and that remap does not leave us somewhere we don’t want to be)
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_offline_diagnostics(monkeypatch)
Test offline diagnostic file remapped to output location correctly
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components()
Checks for success of remapping a file with rose app using the remap-pp-components script as the valid definitions are being called by the environment.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components_begin_date_failure()
Checks for failure of remapping a file with rose app using the remap-pp-components script when the begin variable is ill-defined.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components_chunk_failure(caplog)
Checks for correct output when chunk passed is not the same as the chunk in the directory structure.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components_product_failure()
Checks for failure of remapping a file with rose app using the remap-pp-components script when the product is ill-defined. (not ts or av)
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components_statics()
Test static sources are remapped to output location correctly
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_pp_components_with_ensmem()
Checks for success of remapping a file with rose app config using the remap-pp-components script when ens_mem is defined.
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_static_variable_filtering()
Test variable filtering capabilities
same file should be found as in static remap test, but component, defined specifies variable bk
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_static_variable_filtering_fail()
Test failure of variable filtering capabilities for statics when variable does not exist; variables = bk, no_var
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_variable_filtering()
Test variable filtering capabilities
same file should be found as in first regular remap test, but component defined specifies variable co2mass
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_remap_variable_filtering_fail()
Test failure of variable filtering capabilities when variable does not exist; variable = no_var
- fre.app.remap_pp_components.tests.test_remap_pp_components.test_yaml_ex_exists()
Test for the existence of example yaml configuration