Skip to content

Commit

Permalink
update assert test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed Nov 20, 2023
1 parent 1c8b4c4 commit 360bff8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_validate_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ def test_correct_validate_dict_return_method():
stac = stac_validator.StacValidate()
with open("tests/test_data/1rc2/extensions-collection/collection.json", "r") as f:
good_stac = json.load(f)
if stac.validate_dict(good_stac) is True:
return True
assert stac.validate_dict(good_stac)


def test_incorrect_validate_dict_return_method():
stac = stac_validator.StacValidate()
with open("tests/test_data/1rc2/extensions-collection/collection.json", "r") as f:
good_stac = json.load(f)
bad_stac = good_stac.pop("type", None)
if stac.validate_dict(bad_stac) is False:
return True
assert stac.validate_dict(bad_stac) is False

0 comments on commit 360bff8

Please sign in to comment.