Skip to content

Commit

Permalink
SpectrumWidgetTest only needs a mock main window
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Oct 31, 2024
1 parent cda8ff9 commit 06ce336
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def test_WHEN_colour_is_not_valid_THEN_roi_colour_is_unchanged(self):
class SpectrumWidgetTest(unittest.TestCase):

def setUp(self) -> None:
with mock.patch("mantidimaging.gui.windows.main.view.WelcomeScreenPresenter"):
self.main_window = MainWindowView()
self.main_window = mock.create_autospec(MainWindowView)
self.view = mock.create_autospec(SpectrumViewerWindowView)
self.view.current_dataset_id = uuid.uuid4()
self.view.parent = mock.create_autospec(SpectrumViewerWindowPresenter)
Expand Down

0 comments on commit 06ce336

Please sign in to comment.