We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8b4c4 commit 360bff8Copy full SHA for 360bff8
tests/test_validate_dict.py
@@ -56,14 +56,12 @@ def test_correct_validate_dict_return_method():
56
stac = stac_validator.StacValidate()
57
with open("tests/test_data/1rc2/extensions-collection/collection.json", "r") as f:
58
good_stac = json.load(f)
59
- if stac.validate_dict(good_stac) is True:
60
- return True
+ assert stac.validate_dict(good_stac)
61
62
63
def test_incorrect_validate_dict_return_method():
64
65
66
67
bad_stac = good_stac.pop("type", None)
68
- if stac.validate_dict(bad_stac) is False:
69
+ assert stac.validate_dict(bad_stac) is False
0 commit comments