Skip to content

Commit

Permalink
fix: Fixed regex pattern in test_locate
Browse files Browse the repository at this point in the history
  • Loading branch information
JCruiz15 authored and jfaldanam committed Jun 25, 2024
1 parent 27d7472 commit 4c5264e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/test_locate.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,17 @@ def test_invalid_layer(self):

def test_missing_parameters(self):
with pytest.raises(
ValueError, match="Layer, latitude, longitude or reference not specified"
ValueError, match="Layer, latitude or longitude not specified"
):
geometry_from_coords("", 40.0, -3.0, 123)
with pytest.raises(
ValueError, match="Layer, latitude, longitude or reference not specified"
ValueError, match="Layer, latitude or longitude not specified"
):
geometry_from_coords("parcela", None, -3.0, 123)
with pytest.raises(
ValueError, match="Layer, latitude, longitude or reference not specified"
ValueError, match="Layer, latitude or longitude not specified"
):
geometry_from_coords("parcela", 40.0, None, 123)
with pytest.raises(
ValueError, match="Layer, latitude, longitude or reference not specified"
):
geometry_from_coords("parcela", 40.0, -3.0, None)


if __name__ == "__main__":
Expand Down

0 comments on commit 4c5264e

Please sign in to comment.