Skip to content

Commit

Permalink
Update signal util tests to address behavior changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Sep 20, 2024
1 parent b9c9011 commit 0c4c3e4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/signal_util_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,17 @@ def test_signal_utils_reload(self):
import ovos_utils.signal
from neon_utils.signal_utils import _check_for_signal
self.assertFalse(neon_utils.signal_utils.check_signal_manager_available())
self.assertEqual(neon_utils.signal_utils._check_for_signal,
ovos_utils.signal.check_for_signal)
self.assertEqual(neon_utils.signal_utils._create_signal,
ovos_utils.signal.create_signal)
self.assertEqual(neon_utils.signal_utils._wait_for_signal_clear,
neon_utils.signal_utils._fs_wait_for_signal_clear)
self.assertEqual(neon_utils.signal_utils._wait_for_signal_create,
neon_utils.signal_utils._fs_wait_for_signal_create)
self.assertEqual(_check_for_signal,
ovos_utils.signal.check_for_signal)
# Unavailable Signal Manager means methods will be mocked
# self.assertEqual(neon_utils.signal_utils._check_for_signal,
# ovos_utils.signal.check_for_signal)
# self.assertEqual(neon_utils.signal_utils._create_signal,
# ovos_utils.signal.create_signal)
# self.assertEqual(neon_utils.signal_utils._wait_for_signal_clear,
# neon_utils.signal_utils._fs_wait_for_signal_clear)
# self.assertEqual(neon_utils.signal_utils._wait_for_signal_create,
# neon_utils.signal_utils._fs_wait_for_signal_create)
# self.assertEqual(_check_for_signal,
# ovos_utils.signal.check_for_signal)

TestSignalManager(self.test_bus)
neon_utils.signal_utils.init_signal_handlers()
Expand Down

0 comments on commit 0c4c3e4

Please sign in to comment.