Skip to content

Commit

Permalink
Tweak jsonschema range comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Nov 13, 2024
1 parent 1ef9805 commit 896ec10
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 @@ -302,8 +302,8 @@ def ww3_prop():

def non_empty_dict(errors: list[str]) -> bool:
for msg in [
"{} does not have enough properties", # jsonschema [4.18,4.20.*]
"{} should be non-empty", # jsonschema [4.21.*,?]
"{} does not have enough properties", # jsonschema [4.18.0,4.20.*]
"{} should be non-empty", # jsonschema [4.21.0,?]
]:
if msg in errors:
return True
Expand All @@ -312,8 +312,8 @@ def non_empty_dict(errors: list[str]) -> bool:

def non_empty_list(errors: list[str]) -> bool:
for msg in [
"[] is too short", # jsonschema [4.18.*,4.20.*]
"[] should be non-empty", # jsonschema [4.21.*,?]
"[] is too short", # jsonschema [4.18.0,4.20.*]
"[] should be non-empty", # jsonschema [4.21.0,?]
]:
if msg in errors:
return True
Expand Down

0 comments on commit 896ec10

Please sign in to comment.