Skip to content

Commit

Permalink
Clean up unused import statements in the special suite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Dec 10, 2021
1 parent 1581c1b commit 479e93a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 21 deletions.
3 changes: 1 addition & 2 deletions extra_foam/special_suite/tests/test_camview.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import unittest
from unittest.mock import MagicMock, patch, PropertyMock
from collections import Counter

Expand All @@ -7,7 +6,7 @@
from xarray import DataArray

from PyQt5.QtCore import Qt
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _RawDataMixin

Expand Down
3 changes: 1 addition & 2 deletions extra_foam/special_suite/tests/test_gotthard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import unittest
from unittest.mock import MagicMock, patch, PropertyMock
from collections import Counter

Expand All @@ -7,7 +6,7 @@
from xarray import DataArray

from PyQt5.QtCore import Qt
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _RawDataMixin

Expand Down
5 changes: 2 additions & 3 deletions extra_foam/special_suite/tests/test_gotthard_pump_probe.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import unittest
from unittest.mock import MagicMock, patch, PropertyMock
from unittest.mock import patch, PropertyMock
from collections import Counter

import pytest
import numpy as np

from PyQt5.QtCore import Qt
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _RawDataMixin

Expand Down
6 changes: 1 addition & 5 deletions extra_foam/special_suite/tests/test_module_scan.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import unittest
import unittest
from unittest.mock import MagicMock, patch
from collections import Counter

import pytest
import numpy as np

from extra_foam.special_suite import logger, mkQApp
from extra_foam.special_suite.module_scan_proc import ModuleScanProcessor
from extra_foam.special_suite.module_scan_w import (
ModuleScanWindow
)

from . import _SpecialSuiteWindowTestBase, _SpecialSuiteProcessorTestBase
from . import _SpecialSuiteWindowTestBase

app = mkQApp()
window_type = ModuleScanWindow
Expand Down
2 changes: 0 additions & 2 deletions extra_foam/special_suite/tests/test_multicamview.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import unittest
from unittest.mock import patch
from collections import Counter

import pytest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, patch
from unittest.mock import patch
import functools
import logging

Expand Down
4 changes: 2 additions & 2 deletions extra_foam/special_suite/tests/test_trxas.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from unittest.mock import MagicMock, patch
from unittest.mock import patch
from collections import Counter

import pytest
import numpy as np

from PyQt5.QtCore import Qt
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _TestDataMixin

Expand Down
4 changes: 2 additions & 2 deletions extra_foam/special_suite/tests/test_xas_tim.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from unittest.mock import MagicMock, patch
from unittest.mock import patch
from collections import Counter

import pytest
import numpy as np

from PyQt5.QtCore import Qt, QPoint
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _RawDataMixin

Expand Down
3 changes: 1 addition & 2 deletions extra_foam/special_suite/tests/test_xas_tim_xmcd.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from unittest.mock import MagicMock, patch
from collections import Counter

import pytest
import numpy as np

from PyQt5.QtCore import Qt, QPoint
from PyQt5.QtTest import QSignalSpy, QTest
from PyQt5.QtTest import QTest

from extra_foam.pipeline.tests import _RawDataMixin

Expand Down

0 comments on commit 479e93a

Please sign in to comment.