Notifications should timeout from the list.
()
| 19 | |
| 20 | |
| 21 | def test_timeout() -> None: |
| 22 | """Notifications should timeout from the list.""" |
| 23 | tester = Notifications() |
| 24 | for n in range(100): |
| 25 | tester.add(Notification("test", timeout=(0.5 if bool(n % 2) else 60))) |
| 26 | assert len(tester) == 100 |
| 27 | sleep(0.6) |
| 28 | assert len(tester) == 50 |
| 29 | |
| 30 | |
| 31 | def test_in() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…