Skip to content

Commit

Permalink
Test for changing spinbox enabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
DolicaAkelloEgwel committed Mar 2, 2021
1 parent 0b39694 commit 95ee0bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mantidimaging/gui/windows/operations/test/test_presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])

0 comments on commit 95ee0bc

Please sign in to comment.