Skip to content

Commit

Permalink
change test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Jan 18, 2025
1 parent 29e5912 commit 7c3f735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/gui/test_point_capture_map_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ def test_point_capture_map_tool_with_snap(

map_tool.canvasMoveEvent(create_mouse_event(qgis_canvas, point, event_type=QEvent.Type.MouseMove))

assert map_tool.get_point() == QgsPointXY(-336430.54888639913406223, -1189081.19254285283386707)

with qtbot.waitSignal(map_tool.canvasClicked, timeout=None, raising=True):
map_tool.canvasReleaseEvent(create_mouse_event(qgis_canvas, point))

assert map_tool.get_point() == QgsPointXY(-336430.54888639913406223, -1189081.19254285283386707)
assert map_tool.is_point_snapped()
assert map_tool.snap_layer() == layer_polygons.name()
assert map_tool.get_point() == QgsPointXY(-336430.54888639913406223, -1189081.19254285283386707)

0 comments on commit 7c3f735

Please sign in to comment.