Skip to content

Commit

Permalink
update waterfall test for bragg peak update #REF766
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed Jun 8, 2022
1 parent 25d49dc commit a2f94d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mslice/tests/cut_plot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def test_update_legend(self):

def test_waterfall(self):
self.cut_plot._apply_offset = MagicMock()
self.cut_plot.update_bragg_peaks = MagicMock()
self.cut_plot.waterfall = True
self.cut_plot.waterfall_x = 1
self.cut_plot.waterfall_y = 2
Expand All @@ -108,3 +109,4 @@ def test_waterfall(self):
self.cut_plot.waterfall = False
self.cut_plot.toggle_waterfall()
self.cut_plot._apply_offset.assert_called_with(0, 0)
self.cut_plot.update_bragg_peaks.assert_called_with(refresh=True)

0 comments on commit a2f94d9

Please sign in to comment.