diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-10-26 00:44:52 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-10-26 00:44:52 +0100 |
| commit | a07fb6c62db75414a4a3b04006f52e0efb0c450c (patch) | |
| tree | a7bb8c65a89fde5b1a1a1c49e175d7f75aaf4867 /tests/unit/test_wxui_radiothread.py | |
| parent | c891fdbe99e3d4b3ec76f1a221839702bef9a787 (diff) | |
New upstream version 20241025upstream/20241025
Diffstat (limited to 'tests/unit/test_wxui_radiothread.py')
| -rw-r--r-- | tests/unit/test_wxui_radiothread.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/unit/test_wxui_radiothread.py b/tests/unit/test_wxui_radiothread.py index 0277034..18d08b5 100644 --- a/tests/unit/test_wxui_radiothread.py +++ b/tests/unit/test_wxui_radiothread.py @@ -164,15 +164,9 @@ class TestClone(base.BaseTest): # be visible in the model box. for rclass in [x for x in directory.DRV_TO_RADIO.values() if issubclass(x, chirp_common.DetectableInterface)]: - labels = [] - for child_rclass in rclass.detected_models(include_self=False): - label = clone.detected_value(rclass, child_rclass) - self.assertNotEqual('', label) - labels.append(label) - if labels: - label = '%s (+ %s)' % (rclass.MODEL, ','.join(labels)) - self.assertLessEqual(len(label), 32, - 'Label %r is too long' % label) + label = clone.get_model_label(rclass) + self.assertLessEqual(len(label), 32, + 'Label %r is too long' % label) class TestException(Exception): |
