fix tests from mlz repo
- fix omit_unchanged - names too short + other pylint complains Change-Id: I3c277b461fad1a5fdf8e76ff1cc42b8742d1de16 Change-Id: I58fb64f91bcc2efef20df68f5c63a64315413286
This commit is contained in:
@ -71,7 +71,11 @@ class Data:
|
||||
|
||||
|
||||
class DispatcherStub:
|
||||
OMIT_UNCHANGED_WITHIN = 0
|
||||
# the first update from the poller comes a very short time after the
|
||||
# initial value from the timestamp. However, in the test below
|
||||
# the second update happens after the updates dict is cleared
|
||||
# -> we have to inhibit the 'omit unchanged update' feature
|
||||
omit_unchanged_within = 0
|
||||
|
||||
def __init__(self, updates):
|
||||
self.updates = updates
|
||||
@ -108,6 +112,7 @@ def test_IOHandler():
|
||||
group1 = Hdl('group1', 'SIMPLE?', '%g')
|
||||
group2 = Hdl('group2', 'CMD?%(channel)d', '%g,%s,%d')
|
||||
|
||||
|
||||
class Module1(Module):
|
||||
channel = Property('the channel', IntRange(), default=3)
|
||||
loop = Property('the loop', IntRange(), default=2)
|
||||
|
Reference in New Issue
Block a user