Skip to content

Commit f7da0cc

Browse files
committed
add esmvaltool.cmor_check in test
1 parent 96ab7f7 commit f7da0cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_mop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
DATA_DIR = Path(__file__).parent / "data"
1414

15-
print("Working directory:", os.getcwd())
1615

1716
@pytest.fixture
1817
def model():
@@ -87,7 +86,9 @@ def load_filtered_variables_om3_3d(mappings):
8786
list_3d = [var for var in df.index if len(df.loc[var, "dimensions"]) == 4]
8887
return list_3d
8988

89+
9090
def esmvaltool_cmor_check(cube, cmor_name, mip, cmor_table='CMIP6', check_level=5):
91+
# Use ESMValTool’s built-in functions cmor_check_metadata and cmor_check_data to assist with testing.
9192
cmor_check_metadata(cube, cmor_table, mip, short_name=cmor_name, check_level=5)
9293
cmor_check_data(cube, cmor_table, mip, short_name=cmor_name, check_level=5)
9394

0 commit comments

Comments
 (0)