Skip to content

Commit

Permalink
Update execution-parallel testcase naming
Browse files Browse the repository at this point in the history
  • Loading branch information
NaureenBharwaniNOAA committed Oct 8, 2024
1 parent ef102f8 commit 565e6fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uwtools/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def test_schema_esg_grid_rundir(esg_grid_prop):
# execution-parallel


def test_schema_execution():
def test_schema_parallel_execution():
config = {"executable": "fv3"}
batchargs = {"batchargs": {"queue": "string", "walltime": "string"}}
mpiargs = {"mpiargs": ["--flag1", "--flag2"]}
Expand All @@ -692,15 +692,15 @@ def test_schema_execution():
)


def test_schema_execution_executable():
def test_schema_parallel_execution_executable():
errors = schema_validator("execution-parallel", "properties", "executable")
# String value is ok:
assert not errors("fv3.exe")
# Anything else is not:
assert "42 is not of type 'string'\n" in errors(42)


def test_schema_execution_mpiargs():
def test_schema_parallel_execution_mpiargs():
errors = schema_validator("execution-parallel", "properties", "mpiargs")
# Basic correctness:
assert not errors(["string1", "string2"])
Expand All @@ -710,7 +710,7 @@ def test_schema_execution_mpiargs():
assert "42 is not of type 'string'\n" in errors(["string1", 42])


def test_schema_execution_threads():
def test_schema_parallel_execution_threads():
errors = schema_validator("execution-parallel", "properties", "threads")
# threads must be non-negative, and an integer:
assert not errors(1)
Expand Down

0 comments on commit 565e6fd

Please sign in to comment.