The following test, invoked by tox, fails:
self = <tests.TestCaseEdges_Yaesu_FT-1D_R testMethod=test_get_set_specials> … self = <Memory WX1(1111): freq=162550000,name='WX1PA7',vfo=0,rtone=67.0,ctone=67.0,dtcs=23,rx_dtcs=23,tmode='',cross_mode='To...p=5.0,comment='',empty=False,immutable=['extd_number', 'name', 'freq', 'mode', 'duplex', 'offset', 'comment', 'empty']> name = 'freq', val = 162555000 def __setattr__(self, name, val): if not hasattr(self, name): raise ValueError("No such attribute `%s'" % name)
if name in self.immutable:
raise ImmutableValueError("Field %s is not " % name +
"mutable on this memory”) E chirp.chirp_common.ImmutableValueError: Field freq is not mutable on this memory
Will always fail for specials that have immutable freq field (and perhaps other immutable fields too) when the test tries a SET on that special. Perhaps that can become an XFail ???? Or even a Skip (for the Setting portion of the test) if immutable is already set for specials.?
Will always fail for specials that have immutable freq field (and perhaps other immutable fields too) when the test tries a SET on that special.
Yep, this is the first case of a special (or any, really) channel with an immutable frequency field since it would be pointless to expose those memories, except for this strange case.
Perhaps that can become an XFail ???? Or even a Skip (for the Setting portion of the test) if immutable is already set for specials.?
No, because then your regular specials wouldn't be tested. Just check and 'continue' in that loop if "'freq' in mem.immutable".
--Dan
participants (2)
-
Dan Smith
-
Declan Rieb