Skip to content

Commit

Permalink
Update test_event_scheduler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Nov 21, 2024
1 parent 2afc7c8 commit bcaf18a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/unittests/test_event_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

import unittest
import time
try:
from pyee import ExecutorEventEmitter
except (ImportError, ModuleNotFoundError):
from pyee.executor import ExecutorEventEmitter

from unittest.mock import MagicMock, patch
from ovos_utils.fakebus import FakeBus
from ovos_bus_client.util.scheduler import EventScheduler, EventSchedulerInterface
Expand Down Expand Up @@ -110,8 +105,6 @@ def test_shutdown(self):
def f(message):
print('TEST FUNC')

bus = ExecutorEventEmitter()

es = EventSchedulerInterface('tester')
es.set_bus(FakeBus())
es.set_id('id')
Expand All @@ -123,4 +116,4 @@ def f(message):
es.shutdown()
# Check that the reference to the function has been removed from the
# bus emitter
self.assertTrue(len(bus._events.get('id:f', [])) == 0)
self.assertTrue(len(es.bus._events.get('id:f', [])) == 0)

0 comments on commit bcaf18a

Please sign in to comment.