We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee06947 commit 5c72735Copy full SHA for 5c72735
test/test_player.py
@@ -25,6 +25,11 @@ def setUp(self) -> None:
25
self.mock_virtual_bus = self.MockVirtualBus.return_value
26
self.mock_virtual_bus.shutdown = Mock()
27
28
+ # Patch time sleep object
29
+ patcher_sleep = mock.patch("can.io.player.sleep", spec=True)
30
+ self.MockSleep = patcher_sleep.start()
31
+ self.addCleanup(patcher_sleep.stop)
32
+
33
self.baseargs = [sys.argv[0], "-i", "virtual"]
34
self.logfile = os.path.join(
35
os.path.dirname(__file__), "data", "test_CanMessage.asc"
0 commit comments