Skip to content

Commit cecbbe2

Browse files
authored
Merge pull request slgobinath#641 from deltragon/pytest
pytest: test SafeEyesCore
2 parents e688f23 + e93019e commit cecbbe2

File tree

3 files changed

+546
-1
lines changed

3 files changed

+546
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ types = [
6969
]
7070
tests = [
7171
"pytest==8.3.5",
72+
"time-machine==2.16.0",
7273
]
7374

7475
[tool.mypy]

safeeyes/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,4 @@ def __start_next_break(self) -> None:
448448

449449
if self.running:
450450
# Schedule the break again
451-
self.__scheduler_job()
451+
self.__wait_for(0, self.__scheduler_job)

0 commit comments

Comments
 (0)