From 95ee0bc52cdf139605bac0ab54479d98ea2269c7 Mon Sep 17 00:00:00 2001 From: DolicaAkelloEgwel Date: Tue, 2 Mar 2021 17:32:37 +0000 Subject: [PATCH] Test for changing spinbox enabled state --- mantidimaging/gui/windows/operations/test/test_presenter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mantidimaging/gui/windows/operations/test/test_presenter.py b/mantidimaging/gui/windows/operations/test/test_presenter.py index e9b4d320b2d..7a988ef569f 100644 --- a/mantidimaging/gui/windows/operations/test/test_presenter.py +++ b/mantidimaging/gui/windows/operations/test/test_presenter.py @@ -226,3 +226,7 @@ def test_original_stack_assigned_when_safe_apply_checked(self, _): stack.presenter.images.copy.assert_called_once() self.assertEqual(stack_data, self.presenter.original_images_stack) + + def test_preview_image_spin_box_disabled_while_updating_preview(self): + self.presenter.do_update_previews() + self.view.previewImageIndex.setEnabled.assert_has_calls([mock.call(False), mock.call(True)])