Skip to content

Commit

Permalink
Mock ImageWatcher in test_live_view_opens_without_data to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Feb 13, 2024
1 parent 8c2bd20 commit 6bd01f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mantidimaging/eyes_tests/live_viewer_window_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def _make_simple_dir(self, directory: Path):

return file_list

def test_live_view_opens_without_data(self):
@mock.patch('mantidimaging.gui.windows.live_viewer.model.ImageWatcher')
def test_live_view_opens_without_data(self, _mock_image_watcher):
self.imaging.show_live_viewer(self.live_directory)
self.check_target(widget=self.imaging.live_viewer)

Expand Down

0 comments on commit 6bd01f3

Please sign in to comment.