Skip to content

Commit

Permalink
Add test for invalid variogram model
Browse files Browse the repository at this point in the history
  • Loading branch information
msorvoja committed Jul 27, 2023
1 parent 08c4f97 commit a33c4f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/vector_processing/test_kriging_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ def test_invalid_geometry():
gdf_invalid_geometry = gpd.GeoDataFrame(geometry=gpd.points_from_xy(df["x"], df["y"]))
with pytest.raises(NotApplicableGeometryTypeException):
kriging(data=gdf_invalid_geometry, resolution=(10, 10), extent=(0, 5, 0, 5))


def test_invalid_variogram_model():
"""Test that invalid variogram model raises the correct exception."""
with pytest.raises(InvalidParameterValueException):
kriging(gdf, resolution=(10, 10), extent=(0, 5, 0, 5), variogram_model="invalid_model")

0 comments on commit a33c4f2

Please sign in to comment.