Skip to content

Commit 360bff8

Browse files
committed
update assert test warnings
1 parent 1c8b4c4 commit 360bff8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_validate_dict.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@ def test_correct_validate_dict_return_method():
5656
stac = stac_validator.StacValidate()
5757
with open("tests/test_data/1rc2/extensions-collection/collection.json", "r") as f:
5858
good_stac = json.load(f)
59-
if stac.validate_dict(good_stac) is True:
60-
return True
59+
assert stac.validate_dict(good_stac)
6160

6261

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

0 commit comments

Comments
 (0)