Skip to content

Commit 2976a61

Browse files
committed
Add tests for bbox validation
1 parent 437691f commit 2976a61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_features.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,11 @@ def test_feature_validation():
229229
with pytest.raises(ValidationError):
230230
# missing geometry
231231
Feature(type="Feature", properties=None)
232+
233+
with pytest.raises(ValidationError):
234+
# bad bbox2d
235+
Feature(type="Feature", properties=None, bbox=[100, 100, 0, 0])
236+
237+
with pytest.raises(ValidationError):
238+
# bad bbox3d
239+
Feature(type="Feature", properties=None, bbox=[100, 100, 100, 0, 0, 0])

0 commit comments

Comments
 (0)