@@ -213,6 +213,7 @@ def test_bad_feature_id(id):
213
213
def test_feature_validation ():
214
214
"""Test default."""
215
215
assert Feature (type = "Feature" , properties = None , geometry = None )
216
+ assert Feature (type = "Feature" , properties = None , geometry = None , bbox = None )
216
217
217
218
with pytest .raises (ValidationError ):
218
219
# should be type=Feature
@@ -230,10 +231,12 @@ def test_feature_validation():
230
231
# missing geometry
231
232
Feature (type = "Feature" , properties = None )
232
233
234
+ assert Feature (type = "Feature" , properties = None , bbox = [0 , 0 , 100 , 100 ], geometry = None )
235
+
233
236
with pytest .raises (ValidationError ):
234
237
# bad bbox2d
235
- Feature (type = "Feature" , properties = None , bbox = [100 , 100 , 0 , 0 ])
238
+ Feature (type = "Feature" , properties = None , bbox = [100 , 100 , 0 , 0 ], geometry = None )
236
239
237
240
with pytest .raises (ValidationError ):
238
241
# bad bbox3d
239
- Feature (type = "Feature" , properties = None , bbox = [100 , 100 , 100 , 0 , 0 , 0 ])
242
+ Feature (type = "Feature" , properties = None , bbox = [100 , 100 , 100 , 0 , 0 , 0 ], geometry = None )
0 commit comments