Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Jun 6, 2024
1 parent 7eb2dca commit 7456839
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/uwtools/resources/jsonschema/mpas-streams.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"io_type": {
"enum": [
"pnetcdf4",
"pnetcdf",
"pnetcdf,cdf5",
"netcdf",
"netcdf4"
Expand Down
4 changes: 4 additions & 0 deletions src/uwtools/tests/drivers/test_mpas.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ def config(tmp_path):
"type": "input",
},
"output": {
"clobber_mode": "overwrite",
"filename_template": "history.$Y-$M-$D_$h.$m.$s.nc",
"files": ["stream_list.atmosphere.output"],
"io_type": "pnetcdf",
"mutable": True,
"output_interval": "6:00:00",
"precision": "single",
"reference_time": "2024-06-06 00:00:00",
"streams": ["stream1", "stream2"],
"type": "output",
"vars": ["v1", "v2"],
Expand Down
2 changes: 1 addition & 1 deletion src/uwtools/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def test_schema_mpas_streams_properties_enum(mpas_streams):
"is not one of ['overwrite', 'truncate', 'replace_files', 'never_modify', 'append']"
in errors({k: {**v, "clobber_mode": None}})
)
assert "is not one of ['pnetcdf4', 'pnetcdf,cdf5', 'netcdf', 'netcdf4']" in errors(
assert "is not one of ['pnetcdf', 'pnetcdf,cdf5', 'netcdf', 'netcdf4']" in errors(
{k: {**v, "io_type": None}}
)
assert "is not one of ['single', 'double', 'native']" in errors(
Expand Down

0 comments on commit 7456839

Please sign in to comment.