Commit 5ba56fe
committed
Add
For now, we include one fixture that we will use to mock the `datetime`
class imported in the wall clock timer definition, so we can control
the current time in the tests (and set the default to the UNIX epoch to
make it easier to read times in the tests).
We don't use time-machine for 2 reasons:
1. We will also need to use async-solipsism and time-machine also mocks
the monotonic timer, sometimes conflicting with async-solipsism.
2. We want to tell only when sleep was called within the wall clock
timer module, not in the tests for example.
Signed-off-by: Leandro Lucarella <[email protected]>conftest.py for the wall clock timer tests1 parent fd57d3f commit 5ba56fe
1 file changed
+21
-0
lines changedLines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments