Skip to content
Snippets Groups Projects
Commit 0d145b2f authored by David Trattnig's avatar David Trattnig
Browse files

fix(test): fallback event test cases

parent ccaa60c3
Branches
Tags
1 merge request!35ORM-less scheduling
Pipeline #7715 passed
...@@ -94,7 +94,7 @@ class TestClockHandler(unittest.TestCase): ...@@ -94,7 +94,7 @@ class TestClockHandler(unittest.TestCase):
self.timetable.timetable = [ts1, ts2, ts3, ts4] self.timetable.timetable = [ts1, ts2, ts3, ts4]
clockHandler = ClockInfoHandler(self.engine) clockHandler = ClockInfoHandler(self.engine)
clockHandler.on_fallback_active(ts1, "Station Fallback") clockHandler.on_fallback_active(ts1)
def test_clock_on_play(self): def test_clock_on_play(self):
print(self._testMethodName) print(self._testMethodName)
......
...@@ -139,7 +139,7 @@ class MockEventHandler: ...@@ -139,7 +139,7 @@ class MockEventHandler:
print(f"called mocked '{m}'") print(f"called mocked '{m}'")
self.call_stack.append(m) self.call_stack.append(m)
def on_fallback_active(self, timeslot, fallback_name): def on_fallback_active(self, timeslot):
""" """
Call when a fallback is activated for the given timeslot. Call when a fallback is activated for the given timeslot.
...@@ -216,7 +216,7 @@ class TestEventDispatcher(unittest.TestCase): ...@@ -216,7 +216,7 @@ class TestEventDispatcher(unittest.TestCase):
dispatcher.on_timeslot_end(None) dispatcher.on_timeslot_end(None)
dispatcher.on_play(item) dispatcher.on_play(item)
dispatcher.on_stop(None) dispatcher.on_stop(None)
dispatcher.on_fallback_active(None, None) dispatcher.on_fallback_active(None)
dispatcher.on_queue(item) dispatcher.on_queue(item)
dispatcher.on_sick(None) dispatcher.on_sick(None)
dispatcher.on_resurrect(None) dispatcher.on_resurrect(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment