Remove invalid duplexes from a few drivers

This lets the test assert that we test all duplexes.
This commit is contained in:
Dan Smith 2024-02-23 18:21:24 -08:00 committed by Dan Smith
parent 57e1d17f32
commit b663283892
3 changed files with 3 additions and 4 deletions

View File

@ -369,7 +369,7 @@ BCLO = ['Off', 'Repeater', 'Busy']
CHARSET = chirp_common.CHARSET_ASCII
COLOR = ['Blue', 'Orange', 'Purple']
DISPLAY = ['Frequency', 'N/A', 'Name']
DUPLEXES = ['', 'N/A', '-', '+', 'split', 'off']
DUPLEXES = ['', '', '-', '+', 'split', 'off']
GMRS = ['GMRS %s' % x for x in range(1, 8)] + \
['GMRS %s' % x for x in range(15, 23)] + \
['GMRS Repeater %s' % x for x in range(15, 23)]

View File

@ -81,7 +81,7 @@ u8 name_flags[132];
"""
TMODES = ["", "Tone", "TSQL", "TSQL", "DTCS", "DTCS", "TSQL-R", "DTCS-R"]
DUPLEX = ["", "-", "+", "?3"]
DUPLEX = ["", "-", "+", ""]
DTCSP = ["NN", "NR", "RN", "RR"]
MODES = ["FM", "NFM", "WFM", "AM", "NAM", "DV"]
STEPS = [5.0, 6.25, 8.33, 9.0, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0, 50.0,

View File

@ -91,8 +91,7 @@ class TestCaseBruteForce(base.DriverTest):
if 'duplex' in m.immutable:
self.skipTest('Test memory has immutable duplex')
for duplex in self.rf.valid_duplexes:
if duplex not in ["", "-", "+", "split", "off"]:
continue
assert duplex in ["", "-", "+", "split", "off"]
if duplex == 'split':
self.assertTrue(self.rf.can_odd_split,
'Radio supports split but does not set '