diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:39 +0100 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:39 +0100 |
| commit | 6f19923a918f7fb63a444b0c99950fdbe9d2f74c (patch) | |
| tree | 326c13aee4c097b57d784572fa0d322146c832a2 /tests/unit/test_shiftdialog.py | |
| parent | 14581c70e561f9f350a4d5ad86924a5d466028d4 (diff) | |
New upstream version 20221106+py3upstream/20221106+py3
Diffstat (limited to 'tests/unit/test_shiftdialog.py')
| -rw-r--r-- | tests/unit/test_shiftdialog.py | 17 |
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) |
