Skip to content

Commit

Permalink
Add test for new namelist setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaholtNOAA committed Aug 16, 2024
1 parent 390dadd commit f9842b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/uwtools/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,10 @@ def test_schema_upp_namelist(upp_prop):
assert "not one of ['FV3R', '3DRTMA', 'GFS', 'RAPR', 'NMM']" in errors(
{"update_values": {"model_inputs": {"modelname": "foo"}}}
)
# model_inputs: Only certain submodelname values are supported:
assert "not one of ['MPAS', 'RTMA']" in errors(
{"update_values": {"model_inputs": {"submodelname": "foo"}}}
)
# model_inputs: No other keys are supported:
assert "Additional properties are not allowed" in errors(
{"update_values": {"model_inputs": {"something": "else"}}}
Expand Down

0 comments on commit f9842b7

Please sign in to comment.