From 360bff860440853e9f630309388474e5c1e1832a Mon Sep 17 00:00:00 2001 From: jonhealy1 Date: Mon, 20 Nov 2023 15:33:17 +0800 Subject: [PATCH 1/2] update assert test warnings --- tests/test_validate_dict.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 From 42469ce887454730fc4cf81413f28419f691a143 Mon Sep 17 00:00:00 2001 From: jonhealy1 Date: Mon, 20 Nov 2023 15:34:43 +0800 Subject: [PATCH 2/2] update readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.