Skip to content

Commit

Permalink
fixed bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjalling-dejong committed Nov 12, 2024
1 parent e96842e commit 2aa8d4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_regionpolygonfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def time_function(function_name) -> list:
plt.close()



@fixture
def polygon_list():
return [
Expand Down Expand Up @@ -346,7 +347,7 @@ def test_PolygonFile_check_overlap(polygon_list, mocker):
polygon_file.polygons = polygon_list
mocked_logger = mocker.patch.object(polygon_file, "set_logger_message")
polygon_file._check_overlap()
assert mocked_logger.called_with("poly2 overlaps poly1", level="warning")
mocked_logger.assert_called_with("poly2 overlaps poly1.", level="warning")


def test_PolygonFile_polygons_property(polygon_list):
Expand Down

0 comments on commit 2aa8d4e

Please sign in to comment.