File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
### Fixed
14
14
15
+ - Validation checks in a few tests ([ #346 ] ( https://github.com/stac-utils/pystac/pull/346 ) )
16
+
15
17
### Changed
16
18
17
19
- API change: The extension API changed significantly. See ([ #309 ] ( https://github.com/stac-utils/pystac/pull/309 ) ) for more details.
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def test_count(self):
57
57
self .assertEqual (pc_count + 100 , pc_item .properties ["pc:count" ])
58
58
59
59
# Validate
60
- pc_item .validate
60
+ pc_item .validate ()
61
61
62
62
# Cannot test validation errors until the pointcloud schema.json syntax is fixed
63
63
# Ensure setting bad count fails validation
@@ -79,7 +79,7 @@ def test_type(self):
79
79
self .assertEqual ("sonar" , pc_item .properties ["pc:type" ])
80
80
81
81
# Validate
82
- pc_item .validate
82
+ pc_item .validate ()
83
83
84
84
def test_encoding (self ):
85
85
pc_item = pystac .Item .from_file (self .example_uri )
@@ -94,7 +94,7 @@ def test_encoding(self):
94
94
self .assertEqual ("binary" , pc_item .properties ["pc:encoding" ])
95
95
96
96
# Validate
97
- pc_item .validate
97
+ pc_item .validate ()
98
98
99
99
def test_schemas (self ):
100
100
pc_item = pystac .Item .from_file (self .example_uri )
@@ -112,7 +112,7 @@ def test_schemas(self):
112
112
)
113
113
114
114
# Validate
115
- pc_item .validate
115
+ pc_item .validate ()
116
116
117
117
def test_statistics (self ):
118
118
pc_item = pystac .Item .from_file (self .example_uri )
@@ -158,7 +158,7 @@ def test_density(self):
158
158
PointcloudExtension .ext (pc_item ).density = density
159
159
self .assertEqual (density , pc_item .properties ["pc:density" ])
160
160
# Validate
161
- pc_item .validate
161
+ pc_item .validate ()
162
162
163
163
def test_pointcloud_schema (self ):
164
164
props : Dict [str , Any ] = {
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ def test_epsg(self):
140
140
self .assertEqual (ProjectionExtension .ext (asset_no_prop ).epsg , 8888 )
141
141
142
142
# Validate
143
- proj_item .validate
143
+ proj_item .validate ()
144
144
145
145
def test_wkt2 (self ):
146
146
proj_item = pystac .Item .from_file (self .example_uri )
You can’t perform that action at this time.
0 commit comments