mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 02:27:21 +00:00
Remove invalid duplexes from a few drivers
This lets the test assert that we test all duplexes.
This commit is contained in:
parent
57e1d17f32
commit
b663283892
@ -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)]
|
||||
|
@ -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,
|
||||
|
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user