Skip to content

Commit

Permalink
edge label graph and invis node test
Browse files Browse the repository at this point in the history
Signed-off-by: Christian López Barrón <[email protected]>
  • Loading branch information
chrizzFTD committed Dec 7, 2024
1 parent 539db43 commit a333e96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,13 @@ def test_graph_views(self):
),
2: dict(
label="{<0>a|<1>b}",
style='rounded,filled',
style='invis',
shape="record",
),
}
edges_info = (
(1, 1, dict(color='sienna:crimson:orange')),
(1, 2, dict(color='crimson')),
(1, 2, dict(color='crimson', label='edge_label')),
(2, 1, dict(color='green')),
)

Expand Down Expand Up @@ -805,6 +805,8 @@ def _test_positions(graph, prog):
self.assertEqual(item.textInteractionFlags(), QtCore.Qt.NoTextInteraction)
item.hoverLeaveEvent(event)

item.itemChange(QtWidgets.QGraphicsItem.ItemPositionHasChanged, (1,1))

self.assertTrue(cycle_collected)
self.assertTrue(nodes_hovered_checked)

Expand Down

0 comments on commit a333e96

Please sign in to comment.