From 492ab84652431f8ceac89d51649bdbadb64a5a14 Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Mon, 5 Jul 2021 11:24:31 +0100 Subject: [PATCH] test_compare_images_window_opens use random seed Get a deteministic random image --- mantidimaging/eyes_tests/test_compare_images_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mantidimaging/eyes_tests/test_compare_images_window.py b/mantidimaging/eyes_tests/test_compare_images_window.py index babdba5624d..77fa36510c6 100644 --- a/mantidimaging/eyes_tests/test_compare_images_window.py +++ b/mantidimaging/eyes_tests/test_compare_images_window.py @@ -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()