diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:45 +0100 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-11-08 11:40:45 +0100 |
| commit | 42b1373eff59af2aebb218ded3d2d55cc96dc630 (patch) | |
| tree | d6e7e435fa41c65fff7a73dd7dc99bb4a12da5c8 /tests/unit/test_shiftdialog.py | |
| parent | 176c8e29d64892072697c5d30513204773545a9b (diff) | |
| parent | 6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff) | |
Update upstream source from tag 'upstream/20221106+py3'
Update to upstream version '20221106+py3'
with Debian dir b54298e303932808cc08745c5f5133ad7b12628e
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) |
