Skip to content

Commit

Permalink
chore: Change misleading wording
Browse files Browse the repository at this point in the history
  • Loading branch information
gjclark committed Aug 29, 2024
1 parent 5a72bed commit 5e9bb00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geo_extensions/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def to_polygons(obj: Geometry) -> TransformationResult:
yield obj
return

raise Exception(f"WKT: '{obj}' is not a Polygon or MultiPolygon")
raise Exception(f"'{obj}' is not a Polygon or MultiPolygon")


def _apply_transformations(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_from_geo_json_multipolygon(simplify_transformer):
def test_from_wkt_bad_points(simplify_transformer):
with pytest.raises(
Exception,
match=r"WKT: 'POINT \(30 10\)' is not a Polygon or MultiPolygon",
match=r"'POINT \(30 10\)' is not a Polygon or MultiPolygon",
):
simplify_transformer.from_wkt("POINT (30 10)")

Expand All @@ -195,8 +195,8 @@ def test_from_wkt_bad_points(simplify_transformer):

def test_from_geo_json_bad_points(simplify_transformer):
with pytest.raises(
Exception,
match=r"WKT: 'POINT \(30 10\)' is not a Polygon or MultiPolygon",
Exception,
match=r"'POINT \(30 10\)' is not a Polygon or MultiPolygon",
):
simplify_transformer.from_geo_json({
"type": "Point",
Expand Down

0 comments on commit 5e9bb00

Please sign in to comment.