From 7c3f7350c01e98b51788a41d952bb26397b57888 Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Sat, 18 Jan 2025 19:45:02 +0100 Subject: [PATCH] change test --- tests/gui/test_point_capture_map_tool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/gui/test_point_capture_map_tool.py b/tests/gui/test_point_capture_map_tool.py index 576b222..33e2679 100644 --- a/tests/gui/test_point_capture_map_tool.py +++ b/tests/gui/test_point_capture_map_tool.py @@ -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)