Skip to content

Commit

Permalink
Accepted test
Browse files Browse the repository at this point in the history
  • Loading branch information
DolicaAkelloEgwel committed Nov 30, 2020
1 parent 2a516bb commit 78b156e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mantidimaging/gui/windows/recon/test/presenter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,17 @@ def test_do_refine_iterations_declined(self, mock_corview):
mock_corview.assert_called_once()
mock_corview.return_value.exec.assert_called_once()

def test_do_refine_iterations_accepted(self):
pass
@mock.patch('mantidimaging.gui.windows.recon.presenter.CORInspectionDialogView')
def test_do_refine_iterations_accepted(self, mock_corview):
mock_dialog = mock_corview.return_value
mock_dialog.exec.return_value = mock_corview.Accepted
mock_dialog.optimal_iterations = iters = 25

self.presenter._do_refine_iterations()

mock_corview.assert_called_once()
mock_corview.return_value.exec.assert_called_once()
self.view.set_iterations.assert_called_once_with(iters)

def test_do_cor_fit(self):
self.presenter.do_preview_reconstruct_slice = mock.Mock()
Expand Down

0 comments on commit 78b156e

Please sign in to comment.