Skip to content

Commit

Permalink
Add test for schema consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-work committed Jan 16, 2024
1 parent 7056670 commit bbfdef0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_geometries.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ def test_parse_geometry_obj_point():
)


def test_schema():
"""Test to check that the schema is the same for validation and serialization"""
assert Point.model_json_schema(mode="validation") == Point.model_json_schema(
mode="serialization"
)


def test_parse_geometry_obj_multi_point():
assert parse_geometry_obj(
{"type": "MultiPoint", "coordinates": [[100.0, 0.0], [101.0, 1.0]]}
Expand Down

0 comments on commit bbfdef0

Please sign in to comment.