Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
FillBk committed Mar 19, 2024
1 parent e89bb8c commit 3e044f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/asammdf/gui/widgets/test_NumericWidget_Shortcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def setUp(self):
self.table_view = self.numeric.channels.dataView

def tearDown(self):
if self.widget:
self.widget.destroy()
super().tearDown()

def test_NumericWidget_Shortcut_Keys_Ctrl_H_Ctrl_B_Ctrl_P_Ctrl_T(self):
Expand Down
5 changes: 4 additions & 1 deletion test/asammdf/gui/widgets/test_PlotWidget_Shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ def test_Plot_Plot_Shortcut_Key_2(self):
for _ in range(50):
self.processEvents(0.01)
# Evaluate
self.assertTrue(Pixmap.is_black(self.plot.plot.viewport().grab()))
pm = self.plot.plot.viewport().grab()
colors = Pixmap.color_names(pm)
print(colors)
self.assertTrue(Pixmap.is_black(pm))

# case 1
self.mouseClick_WidgetItem(self.channels[0])
Expand Down

0 comments on commit 3e044f7

Please sign in to comment.