Skip to content

Commit

Permalink
Remove MixedDataset from ReconstructionWindowTest, DatasetSelectorWid…
Browse files Browse the repository at this point in the history
…getPresenterTests, SpectrumViewerWindowPresenterTest
  • Loading branch information
samtygier-stfc committed Nov 15, 2024
1 parent 41fc617 commit 9c5e1e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/eyes_tests/reconstruct_window_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from mantidimaging.eyes_tests.base_eyes import BaseEyesTest
from mantidimaging.test_helpers.unit_test_helper import generate_images
from mantidimaging.core.data.dataset import MixedDataset
from mantidimaging.core.data.dataset import Dataset
from mantidimaging.test_helpers.qt_test_helpers import wait_until


Expand Down Expand Up @@ -56,7 +56,7 @@ def test_reconstruction_window_reconstruct_tab(self):
def test_negative_nan_overlay(self):
images = generate_images(seed=10)
images.name = "bad_data"
ds = MixedDataset(stacks=[images])
ds = Dataset(stacks=[images])
self.imaging.presenter.model.add_dataset_to_model(ds)
self.imaging.presenter.create_single_tabbed_images_stack(images)
QApplication.sendPostedEvents()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import unittest
from unittest import mock

from mantidimaging.core.data.dataset import StrictDataset, MixedDataset
from mantidimaging.core.data.dataset import StrictDataset, Dataset
from mantidimaging.gui.widgets.dataset_selector.presenter import DatasetSelectorWidgetPresenter, Notification
from mantidimaging.gui.widgets.dataset_selector.view import DatasetSelectorWidgetView

Expand Down Expand Up @@ -33,7 +33,7 @@ def setUp(self) -> None:
self.ds1.name = "Dataset 1"
self.ds2 = StrictDataset(sample=self.img2, flat_before=self.img3)
self.ds2.name = "Dataset 2"
self.ds3 = MixedDataset(stacks=[self.img4])
self.ds3 = Dataset(stacks=[self.img4])
self.ds3.name = "Dataset 3"

def test_handle_selection_no_matching_index_found(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from PyQt5.QtWidgets import QPushButton, QActionGroup, QGroupBox, QAction, QCheckBox, QTabWidget
from parameterized import parameterized

from mantidimaging.core.data.dataset import StrictDataset, MixedDataset
from mantidimaging.core.data.dataset import StrictDataset, Dataset
from mantidimaging.core.utility.sensible_roi import SensibleROI
from mantidimaging.gui.windows.main import MainWindowView
from mantidimaging.gui.windows.spectrum_viewer import SpectrumViewerWindowView, SpectrumViewerWindowPresenter
Expand Down Expand Up @@ -103,9 +103,9 @@ def test_handle_sample_change_dataset_unchanged(self):
self.presenter.main_window.get_dataset.assert_not_called()
self.assertEqual(self.view.current_dataset_id, initial_dataset_id)

def test_handle_sample_change_to_MixedDataset(self):
def test_handle_sample_change_to_dataset_no_sample(self):
self.presenter.get_dataset_id_for_stack = mock.Mock(return_value=uuid.uuid4())
new_dataset = MixedDataset(stacks=[generate_images()])
new_dataset = Dataset(stacks=[generate_images()])
self.presenter.main_window.get_dataset = mock.Mock(return_value=new_dataset)
self.presenter.main_window.get_stack = mock.Mock(return_value=generate_images())
self.presenter.show_new_sample = mock.Mock()
Expand Down

0 comments on commit 9c5e1e3

Please sign in to comment.