pulser: Pulse for busses, too
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
fd43952d54
commit
dc86b1c32e
|
@ -33,6 +33,7 @@ def start_pulsing(thread):
|
|||
|
||||
def initialize():
|
||||
lib.thread.Start.register(start_pulsing)
|
||||
lib.bus.Start.register(start_pulsing)
|
||||
initialize()
|
||||
|
||||
def reset():
|
||||
|
|
|
@ -12,6 +12,7 @@ class TestThread:
|
|||
|
||||
class TestUIPulser(unittest.TestCase):
|
||||
def setUp(self):
|
||||
pulser.reset()
|
||||
pulser.initialize()
|
||||
pulser.reset()
|
||||
|
||||
|
@ -26,6 +27,7 @@ class TestUIPulser(unittest.TestCase):
|
|||
self.assertEqual(pulser.Bar.get_margin_end(), 10)
|
||||
|
||||
self.assertIn(pulser.start_pulsing, lib.thread.Start.subscribers)
|
||||
self.assertIn(pulser.start_pulsing, lib.bus.Start.subscribers)
|
||||
|
||||
def test_pulser_pulse(self):
|
||||
t1 = TestThread()
|
||||
|
|
Loading…
Reference in New Issue