We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 257ee74 commit 527c1a4Copy full SHA for 527c1a4
tests/test_timer.py
@@ -21,8 +21,8 @@ def test_timer_simple():
21
22
avr.step(1000)
23
eq_(avr.state, cpu_Running, "mcu is not running")
24
-
25
- callbackMock.assert_called_once()
+
+ eq_(callbackMock.call_count, 1, "number of calback invocations")
26
avr.terminate()
27
28
def test_timer_reoccuring():
@@ -42,7 +42,6 @@ def test_timer_reoccuring():
42
# Run long enought to ensure callback is canceled by returning 0 on the second invocation.
43
44
45
- callbackMock.assert_called()
46
eq_(callbackMock.call_count, 2, "number of calback invocations")
47
48
lastCallFirstArg = callbackMock.call_args[0][0]
0 commit comments