summaryrefslogtreecommitdiff
path: root/tests/unit/test_shiftdialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test_shiftdialog.py')
-rw-r--r--tests/unit/test_shiftdialog.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/unit/test_shiftdialog.py b/tests/unit/test_shiftdialog.py
index fe0b62d..227c1af 100644
--- a/tests/unit/test_shiftdialog.py
+++ b/tests/unit/test_shiftdialog.py
@@ -5,6 +5,10 @@ except ImportError:
from mox3 import mox
from tests.unit import base
+try:
+ from chirp.ui import shiftdialog
+except ImportError:
+ shiftdialog = None
from chirp import chirp_common
from chirp import errors
@@ -50,18 +54,7 @@ class FakeRadioThread(object):
pass
-class ShiftDialogTest(base.BaseTest):
- def setUp(self):
- global shiftdialog
- super(ShiftDialogTest, self).setUp()
- base.mock_gtk()
- from chirp.ui import shiftdialog as shiftdialog_module
- shiftdialog = shiftdialog_module
-
- def tearDown(self):
- super(ShiftDialogTest, self).tearDown()
- base.unmock_gtk()
-
+class ShiftDialogTest(base.BaseGTKTest):
def _test_hole(self, fn, starting, arg, expected):
radio = FakeRadio(*tuple(starting))
radio.get_features().memory_bounds = (0, 5)