pulser: Pulse for busses, too

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-06-20 10:44:58 -04:00
parent fd43952d54
commit dc86b1c32e
2 changed files with 3 additions and 0 deletions

View File

@ -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():

View File

@ -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()