|
2 | 2 | # SPDX - License - Identifier: GPL-3.0-or-later
|
3 | 3 |
|
4 | 4 | from __future__ import annotations
|
5 |
| -# from typing import TYPE_CHECKING |
6 | 5 | from unittest import mock
|
7 | 6 | import numpy as np
|
8 | 7 | import os
|
|
13 | 12 | from pathlib import Path
|
14 | 13 | from mantidimaging.eyes_tests.base_eyes import BaseEyesTest
|
15 | 14 |
|
16 |
| -# if TYPE_CHECKING: |
17 |
| -# import time # noqa: F401 |
18 |
| - |
19 | 15 |
|
20 | 16 | class LiveViewerWindowTest(FakeFSTestCase, BaseEyesTest):
|
21 | 17 |
|
@@ -93,16 +89,3 @@ def test_rotate_operation_rotates_image(self, _mock_time, _mock_image_watcher, m
|
93 | 89 | self.imaging.live_viewer.presenter.model._handle_image_changed_in_list(image_list)
|
94 | 90 | self.imaging.live_viewer.rotate_angles_group.actions()[1].trigger()
|
95 | 91 | self.check_target(widget=self.imaging.live_viewer)
|
96 |
| - |
97 |
| - # @mock.patch('mantidimaging.gui.windows.live_viewer.presenter.LiveViewerWindowPresenter.load_image') |
98 |
| - # @mock.patch('mantidimaging.gui.windows.live_viewer.model.ImageWatcher') |
99 |
| - # @mock.patch("time.time", return_value=4000.0) |
100 |
| - # def test_file_time_label_displays_correct_time(self, _mock_time, _mock_image_watcher, mock_load_image): |
101 |
| - # file_list = self._make_simple_dir(self.live_directory) |
102 |
| - # image_list = [Image_Data(path) for path in file_list] |
103 |
| - # mock_load_image.return_value = self._generate_image() |
104 |
| - # self.imaging.show_live_viewer(self.live_directory) |
105 |
| - # self.imaging.live_viewer.presenter.model._handle_image_changed_in_list(image_list) |
106 |
| - # self.assertEqual(self.imaging.live_viewer.label_active_filename.text(), "abc_000004.tif |
107 |
| - # - 1970-01-01 02:13:20") |
108 |
| - # self.check_target(widget=self.imaging.live_viewer) |
0 commit comments