Skip to content

Commit

Permalink
Give some time for plot to be updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
tov101 committed Sep 11, 2023
1 parent e3fd6b0 commit a010137
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/asammdf/gui/widgets/test_PlotWidget_DoubleClick.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def test_EnableDisable_Group(self):
self.mouseDClick_WidgetItem(first_group)

# Evaluate
self.processEvents(0.05)
for _ in range(10):
self.processEvents(0.05)
disabled_groups_pixmap = self.plot.plot.viewport().grab()
self.assertFalse(
Pixmap.has_color(
Expand Down Expand Up @@ -283,10 +284,11 @@ def test_EnableDisable_ParentGroup(self):
self.assertNotEqual(color_name, "#808080")
# Press mouse double click on Group A
self.mouseDClick_WidgetItem(groups["A"])
self.processEvents()
disabled_groups_pixmap = self.plot.plot.viewport().grab()

# Evaluate
for _ in range(10):
self.processEvents(0.05)
disabled_groups_pixmap = self.plot.plot.viewport().grab()
for channel in (plot_channel_a, plot_channel_b, plot_channel_c):
self.assertFalse(
Pixmap.has_color(
Expand Down

0 comments on commit a010137

Please sign in to comment.