def setUp(self): self.parent_presenter = create_run_tab_presenter_mock( use_fake_state=False) self.parent_presenter._file_information = mock.MagicMock() self.parent_presenter._file_information.get_instrument = mock.MagicMock( return_value=SANSInstrument.LARMOR) self.presenter = BeamCentrePresenter(self.parent_presenter) self.view = create_mock_beam_centre_tab()
def setUp(self): self.parent_presenter = create_run_tab_presenter_mock(use_fake_state = False) self.view = create_mock_beam_centre_tab() self.WorkHandler = mock.MagicMock() self.BeamCentreModel = mock.MagicMock() self.SANSCentreFinder = mock.MagicMock() self.presenter = BeamCentrePresenter(self.parent_presenter, self.SANSCentreFinder, work_handler=self.WorkHandler, beam_centre_model=self.BeamCentreModel) self.presenter.connect_signals = mock.Mock() self.presenter.set_view(self.view)
def setUp(self): self.parent_presenter = create_run_tab_presenter_mock(use_fake_state = False) self.parent_presenter._file_information = mock.MagicMock() self.parent_presenter._file_information.get_instrument = mock.MagicMock(return_value = SANSInstrument.LARMOR) self.view = create_mock_beam_centre_tab() self.WorkHandler = mock.MagicMock() self.BeamCentreModel = mock.MagicMock() self.SANSCentreFinder = mock.MagicMock() self.presenter = BeamCentrePresenter(self.parent_presenter, self.WorkHandler, self.BeamCentreModel, self.SANSCentreFinder)
def setUp(self): self.parent_presenter = create_run_tab_presenter_mock(use_fake_state = False) self.parent_presenter._file_information = mock.MagicMock() self.parent_presenter._file_information.get_instrument = mock.MagicMock(return_value = SANSInstrument.LARMOR) self.view = create_mock_beam_centre_tab() self.WorkHandler = mock.MagicMock() self.BeamCentreModel = mock.MagicMock() self.SANSCentreFinder = mock.MagicMock() self.presenter = BeamCentrePresenter(self.parent_presenter, self.WorkHandler, self.BeamCentreModel, self.SANSCentreFinder) self.presenter.connect_signals = mock.Mock()