diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:34 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:34 +0100 |
| commit | 96e7558ee5db759a7214cd451a3478f3b44f59a3 (patch) | |
| tree | e673aa5fb96256d43311c0e9581a2d5c6141ace6 /tests/unit/test_wxui_radiothread.py | |
| parent | a289d9178e89abd7dc0fb29bdd6dedf3987b4f06 (diff) | |
| parent | 91dbf844ad923e3c4bca1252dd104d8fc8ce5475 (diff) | |
Update upstream source from tag 'upstream/20231016'
Update to upstream version '20231016'
with Debian dir cd57b3fbc431f25a1408f045533dcb7f7b9975c0
Diffstat (limited to 'tests/unit/test_wxui_radiothread.py')
| -rw-r--r-- | tests/unit/test_wxui_radiothread.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/test_wxui_radiothread.py b/tests/unit/test_wxui_radiothread.py index c60da8c..99f9438 100644 --- a/tests/unit/test_wxui_radiothread.py +++ b/tests/unit/test_wxui_radiothread.py @@ -4,8 +4,10 @@ from unittest import mock sys.modules['wx'] = wx = mock.MagicMock() -from tests.unit import base -from chirp.wxui import radiothread +# These need to be imported after the above mock so that we don't require +# wx to be present for these tests +from tests.unit import base # noqa +from chirp.wxui import radiothread # noqa class TestRadioThread(base.BaseTest): @@ -85,9 +87,9 @@ class TestRadioThread(base.BaseTest): editor = mock.MagicMock() thread = radiothread.RadioThread(radio) mem = mock.MagicMock() - job1id = thread.submit(editor, 'get_memory', 12) - job2id = thread.submit(editor, 'set_memory', mem) - job3id = thread.submit(editor, 'get_features') + thread.submit(editor, 'get_memory', 12) + thread.submit(editor, 'set_memory', mem) + thread.submit(editor, 'get_features') thread.end() # We have to start the thread after we submit the main jobs so # the order is stable for comparison. |
