File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,9 @@ stac-validator https://raw.githubusercontent.com/radiantearth/stac-spec/master/e
32
32
33
33
## Requirements
34
34
35
- - Python 3.7 +
35
+ - Python 3.8 +
36
36
- Requests
37
37
- Click
38
- - Pytest
39
38
- Jsonschema
40
39
41
40
Note: Stac-validator is also used in stac-check which adds linting messages based on the official STAC best practices document.
Original file line number Diff line number Diff line change @@ -56,14 +56,12 @@ def test_correct_validate_dict_return_method():
56
56
stac = stac_validator .StacValidate ()
57
57
with open ("tests/test_data/1rc2/extensions-collection/collection.json" , "r" ) as f :
58
58
good_stac = json .load (f )
59
- if stac .validate_dict (good_stac ) is True :
60
- return True
59
+ assert stac .validate_dict (good_stac )
61
60
62
61
63
62
def test_incorrect_validate_dict_return_method ():
64
63
stac = stac_validator .StacValidate ()
65
64
with open ("tests/test_data/1rc2/extensions-collection/collection.json" , "r" ) as f :
66
65
good_stac = json .load (f )
67
66
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
You can’t perform that action at this time.
0 commit comments