mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 22:22:52 +01:00
chore: normalize dialogs
This commit is contained in:
1 parent
45bd0e16ec
commit
1bc21d6083
15 files changed
+283
-282
No files matched your search
@@ -1,19 +0,0 @@
|
||||
import pytest
|
||||
import time
|
||||
|
||||
from dzgui.util import cooldown
|
||||
|
||||
|
||||
def test_time_under():
|
||||
time_before = cooldown.get_time()
|
||||
time.sleep(1)
|
||||
result = cooldown.is_elapsed(time_before)
|
||||
assert result is False
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_time_over():
|
||||
time_before = cooldown.get_time()
|
||||
time.sleep(31)
|
||||
result = cooldown.is_elapsed(time_before)
|
||||
assert result is True
|
||||
Reference in new issue
Block a user