fremor.tests.test_cmor_resolver module
Tests for fremor.cmor_resolver.
- fremor.tests.test_cmor_resolver.test_load_yaml_dict_empty_file(tmp_path)
An empty YAML file should return an empty dict.
- fremor.tests.test_cmor_resolver.test_load_yaml_dict_non_mapping(tmp_path)
A YAML file whose top-level value is not a mapping raises ValueError.
- fremor.tests.test_cmor_resolver.test_resolve_cmor_ref_as_string(tmp_path)
A cmor reference given as a bare string (not a list) is accepted.
- fremor.tests.test_cmor_resolver.test_resolve_fremor_yaml_am5_matches_expected()
AM5 fixture should resolve to the expected combined YAML mapping.
- fremor.tests.test_cmor_resolver.test_resolve_fremor_yaml_esm4_grid_and_chunk()
ESM4 fixture: grid and chunk anchors from model/grids YAML resolve correctly.
- fremor.tests.test_cmor_resolver.test_resolve_fremor_yaml_esm4_matches_expected()
ESM4 fixture should resolve to the expected combined YAML mapping.
- fremor.tests.test_cmor_resolver.test_resolve_fremor_yaml_writes_output(tmp_path)
Resolver should write the combined YAML when output is requested.
- fremor.tests.test_cmor_resolver.test_resolve_grid_yaml_ref_as_string(tmp_path)
A grid_yaml reference given as a bare string (not a list) is accepted.
- fremor.tests.test_cmor_resolver.test_resolve_missing_experiment(tmp_path)
ValueError when the requested experiment is not in the model YAML.
- fremor.tests.test_cmor_resolver.test_resolve_multiple_cmor_refs(tmp_path)
ValueError when the experiment references more than one cmor YAML.
- fremor.tests.test_cmor_resolver.test_resolve_no_cmor_ref(tmp_path)
ValueError when the experiment has no cmor entry.
- fremor.tests.test_cmor_resolver.test_resolve_yaml_reference_absolute(tmp_path)
An absolute reference is returned as-is.
- fremor.tests.test_cmor_resolver.test_resolve_yaml_reference_relative(tmp_path)
A relative reference is resolved relative to the declaring file.