From 4db40e6b4b4eb833288d1974e9d8c6f0071201e4 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 19 Nov 2025 12:38:35 +1100 Subject: [PATCH] Fix tag graph test --- tests/test_tag_graph_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_tag_graph_dialog.py b/tests/test_tag_graph_dialog.py index a587c9a..60cad08 100644 --- a/tests/test_tag_graph_dialog.py +++ b/tests/test_tag_graph_dialog.py @@ -320,10 +320,10 @@ def test_tag_graph_dialog_on_positions_changed_updates_labels_and_halo( pos = np.array([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]], dtype=float) dlg._on_positions_changed(pos) - # Each label should be slightly below its node (y + 0.30) + # Each label should be slightly below its node (y + 0.15) for i, label in enumerate(dlg._label_items): assert label.pos().x() == pytest.approx(pos[i, 0]) - assert label.pos().y() == pytest.approx(pos[i, 1] + 0.30) + assert label.pos().y() == pytest.approx(pos[i, 1] + 0.15) # Halo layer should receive the updated coordinates and our sizes/brushes assert captured["x"] == [1.0, 3.0, 5.0]