We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f98bdb commit 8c52f31Copy full SHA for 8c52f31
tests/test_features.py
@@ -188,3 +188,18 @@ def test_feature_collection_geo_interface_with_null_geometry():
188
assert "bbox" not in fc.__geo_interface__
189
assert "bbox" not in fc.__geo_interface__["features"][0]
190
assert "bbox" in fc.__geo_interface__["features"][1]
191
+
192
193
+def test_feature_validation():
194
+ """Test default."""
195
+ with pytest.raises(ValidationError):
196
+ # should be type=Feature
197
+ Feature(type="feature", properties={}, geometry=None)
198
199
200
+ # should be properties={}
201
+ Feature(type="Feature", properties=None, geometry=None)
202
203
204
+ # should be geometry=None
205
+ Feature(type="Feature", properties={})
0 commit comments