From a07fb6c62db75414a4a3b04006f52e0efb0c450c Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 26 Oct 2024 00:44:52 +0100 Subject: New upstream version 20241025 --- tests/unit/test_wxui_radiothread.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tests/unit/test_wxui_radiothread.py') 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): -- cgit v1.2.3