Skip to content

Commit

Permalink
PRJ: fix test after dependency bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLP committed Apr 11, 2017
1 parent dcf143c commit f392998
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions silab_online_monitor/testing/test_pybar_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def test_receiver(self):
data_received_0 = []
self.app.processEvents()
for receiver in self.online_monitor.receivers:
data_received_0.append(receiver.occupancy_img.getHistogram())
# Step has to be given to preven issue
# https://github.com/pyqtgraph/pyqtgraph/issues/469
data_received_0.append(receiver.occupancy_img.getHistogram(step=1))
# Activate DUT widget, receiver 1 should show data
self.online_monitor.tab_widget.setCurrentIndex(1)
self.app.processEvents()
Expand All @@ -141,7 +143,7 @@ def test_receiver(self):
time.sleep(0.2)
data_received_1 = []
for receiver in self.online_monitor.receivers:
data_received_1.append(receiver.occupancy_img.getHistogram())
data_received_1.append(receiver.occupancy_img.getHistogram(step=1))
# Activate DUT widget, receiver 2 should show data
self.online_monitor.tab_widget.setCurrentIndex(2)
self.app.processEvents()
Expand All @@ -150,7 +152,7 @@ def test_receiver(self):
time.sleep(1)
data_received_2 = []
for receiver in self.online_monitor.receivers:
data_received_2.append(receiver.occupancy_img.getHistogram())
data_received_2.append(receiver.occupancy_img.getHistogram(step=1))

self.assertListEqual(data_received_0, [(None, None), (None, None)])
self.assertTrue(data_received_1[0][0] is not None)
Expand Down

0 comments on commit f392998

Please sign in to comment.