File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,18 @@ class GenericProperties(BaseModel):
71
71
}
72
72
73
73
74
+ @pytest .mark .parametrize (
75
+ "obj" ,
76
+ [
77
+ FeatureCollection ,
78
+ Feature ,
79
+ ],
80
+ )
81
+ def test_pydantic_schema (obj ):
82
+ """Test schema for Pydantic Object."""
83
+ assert obj .model_json_schema ()
84
+
85
+
74
86
def test_feature_collection_iteration ():
75
87
"""test if feature collection is iterable"""
76
88
gc = FeatureCollection (
Original file line number Diff line number Diff line change 18
18
)
19
19
20
20
21
+ @pytest .mark .parametrize (
22
+ "obj" ,
23
+ [
24
+ GeometryCollection ,
25
+ LineString ,
26
+ MultiLineString ,
27
+ MultiPoint ,
28
+ MultiPolygon ,
29
+ Point ,
30
+ Polygon ,
31
+ ],
32
+ )
33
+ def test_pydantic_schema (obj ):
34
+ """Test schema for Pydantic Object."""
35
+ assert obj .model_json_schema ()
36
+
37
+
21
38
def assert_wkt_equivalence (geom : Union [Geometry , GeometryCollection ]):
22
39
"""Assert WKT equivalence with Shapely."""
23
40
# Remove any trailing `.0` to match Shapely format
You can’t perform that action at this time.
0 commit comments