File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -339,11 +339,23 @@ def test_parse_geometry_obj_point():
339
339
)
340
340
341
341
342
- def test_schema ():
342
+ @pytest .mark .parametrize (
343
+ "geojson_pydantic_model" ,
344
+ (
345
+ GeometryCollection ,
346
+ LineString ,
347
+ MultiLineString ,
348
+ MultiPoint ,
349
+ MultiPolygon ,
350
+ Point ,
351
+ Polygon ,
352
+ ),
353
+ )
354
+ def test_schema_consistency (geojson_pydantic_model ):
343
355
"""Test to check that the schema is the same for validation and serialization"""
344
- assert Point . model_json_schema ( mode = "validation" ) == Point .model_json_schema (
345
- mode = "serialization "
346
- )
356
+ assert geojson_pydantic_model .model_json_schema (
357
+ mode = "validation "
358
+ ) == geojson_pydantic_model . model_json_schema ( mode = "serialization" )
347
359
348
360
349
361
def test_parse_geometry_obj_multi_point ():
You can’t perform that action at this time.
0 commit comments