Skip to content

Commit 5361ba3

Browse files
committed
add esmvaltool.cmor_check in test
1 parent f7da0cc commit 5361ba3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_mop.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import pandas as pd
88
import pytest
99
from esmvalcore.preprocessor import cmor_check_data, cmor_check_metadata
10-
1110
from access_mopper.configurations import ACCESS_ESM16_CMIP6, ACCESS_OM3_CMIP6
1211

1312
DATA_DIR = Path(__file__).parent / "data"
@@ -89,8 +88,8 @@ def load_filtered_variables_om3_3d(mappings):
8988

9089
def esmvaltool_cmor_check(cube, cmor_name, mip, cmor_table='CMIP6', check_level=5):
9190
# Use ESMValTool’s built-in functions cmor_check_metadata and cmor_check_data to assist with testing.
92-
cmor_check_metadata(cube, cmor_table, mip, short_name=cmor_name, check_level=5)
93-
cmor_check_data(cube, cmor_table, mip, short_name=cmor_name, check_level=5)
91+
cmor_check_metadata(cube, cmor_table, mip, short_name=cmor_name, check_level=check_level)
92+
cmor_check_data(cube, cmor_table, mip, short_name=cmor_name, check_level=check_level)
9493

9594

9695
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)