summaryrefslogtreecommitdiff
path: root/tests/unit/test_wxui_radiothread.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-10-26 00:44:58 +0100
committerDave Hibberd <hibby@debian.org>2024-10-26 00:44:58 +0100
commit3e8559df4dfbb0a3f5941e6cc2e2f743a0b65227 (patch)
tree92c43a6ec606b45e64b55765d97c7e2576092414 /tests/unit/test_wxui_radiothread.py
parentefe9dc19bc74423d4375011a2f03a86df41142c4 (diff)
parenta07fb6c62db75414a4a3b04006f52e0efb0c450c (diff)
Update upstream source from tag 'upstream/20241025'
Update to upstream version '20241025' with Debian dir 5f6ba6e78b35faaf24b3ba57438c60d513d8b6c4
Diffstat (limited to 'tests/unit/test_wxui_radiothread.py')
-rw-r--r--tests/unit/test_wxui_radiothread.py12
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):