diff --git a/README.md b/README.md index 8c1f36f0..1f1bf6a9 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,9 @@ stac-validator https://raw.githubusercontent.com/radiantearth/stac-spec/master/e ## Requirements -- Python 3.7+ +- Python 3.8+ - Requests - Click - - Pytest - Jsonschema Note: Stac-validator is also used in stac-check which adds linting messages based on the official STAC best practices document. diff --git a/tests/test_validate_dict.py b/tests/test_validate_dict.py index 74f42069..7a6c9a5d 100644 --- a/tests/test_validate_dict.py +++ b/tests/test_validate_dict.py @@ -56,8 +56,7 @@ 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(): @@ -65,5 +64,4 @@ def test_incorrect_validate_dict_return_method(): 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