Skip to content

Commit

Permalink
test_compare_images_window_opens use random seed
Browse files Browse the repository at this point in the history
Get a deteministic random image
  • Loading branch information
samtygier-stfc committed Jul 5, 2021
1 parent 6da11f7 commit 3d295fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantidimaging/eyes_tests/test_compare_images_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CompareImagesWindowTest(BaseEyesTest):
def test_compare_images_window_opens(self, multi_stack_select):
multi_stack_select.return_value.exec.return_value = QDialog.DialogCode.Accepted
self.imaging.presenter.get_stack_visualiser = mock.MagicMock()
self.imaging.presenter.get_stack_visualiser.return_value.presenter.images = generate_images()
self.imaging.presenter.get_stack_visualiser.return_value.presenter.images = generate_images(seed=2021)
self.imaging.find_images_stack_title = mock.MagicMock(return_value="Stack 1")

stack_compare = self.imaging.show_stack_select_dialog()
Expand Down

0 comments on commit 3d295fd

Please sign in to comment.