diff --git a/pyproject.toml b/pyproject.toml index 9a1c82b..6ca5472 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "model_config_tests" -version = "0.0.3" +version = "0.0.4" authors = [ { name = "ACCESS-NRI" }, ] diff --git a/src/model_config_tests/qa/test_access_esm1p5_config.py b/src/model_config_tests/qa/test_access_esm1p5_config.py index 7463efa..45e0e8b 100644 --- a/src/model_config_tests/qa/test_access_esm1p5_config.py +++ b/src/model_config_tests/qa/test_access_esm1p5_config.py @@ -24,9 +24,9 @@ VALID_KEYWORDS: set[str] = {"global", "access-esm1.5"} VALID_NOMINAL_RESOLUTION: str = "100 km" VALID_REFERENCE: str = "https://doi.org/10.1071/ES19035" -VALID_PREINDUSTRIAL_START: dict[str, int] = {"year": 101, "month": 1, "day": 1} -VALID_HISTORICAL_START: dict[str, int] = {"year": 1850, "month": 1, "day": 1} -VALID_RUNTIME: dict[str, int] = {"year": 1, "month": 0, "day": 0} +VALID_PREINDUSTRIAL_START: dict[str, int] = {"year": 101, "month": 1, "days": 1} +VALID_HISTORICAL_START: dict[str, int] = {"year": 1850, "month": 1, "days": 1} +VALID_RUNTIME: dict[str, int] = {"years": 1, "months": 0, "days": 0} VALID_RESTART_FREQ: str = "10YS" VALID_MPPNCCOMBINE_EXE: str = "mppnccombine.spack" @@ -181,6 +181,10 @@ def test_mppnccombine_fast_collate_exe(self, config): "collate.exe", "config.yaml", VALID_MPPNCCOMBINE_EXE ) + assert "mpi" in config["collate"], error_field_nonexistence( + "collate.mpi", "config.yaml" + ) + assert config["collate"]["mpi"], error_field_incorrect( "collate.mpi", "config.yaml", "true" )