diff options
| author | historia <historiavg@proton.me> | 2026-09-01 14:32:05 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-01 14:32:05 -0400 |
| commit | 6cfcd564c0684c52618235e6366f4a81c02b9a5b (patch) | |
| tree | 55321760a8103bc6b5d79489fac4135a60e6e3ba /app/tests/test_viewkit.py | |
| parent | dc6e7cd43029da62dabe2513fb5aa8a34df1bd6d (diff) | |
| download | tts-audiobook-generator-6cfcd564c0684c52618235e6366f4a81c02b9a5b.tar.gz | |
slop refactor/dedup
Diffstat (limited to 'app/tests/test_viewkit.py')
| -rw-r--r-- | app/tests/test_viewkit.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/tests/test_viewkit.py b/app/tests/test_viewkit.py index efebae6..842ded8 100644 --- a/app/tests/test_viewkit.py +++ b/app/tests/test_viewkit.py @@ -21,9 +21,15 @@ class _SyncThread: def __init__(self, target, daemon=None): self._target = target + self._alive = False def start(self): + self._alive = True self._target() + self._alive = False + + def is_alive(self): + return self._alive def join(self, timeout=None): pass @@ -121,6 +127,9 @@ class DefaultPromptCancelTests(unittest.TestCase): joined = threading.Event() class Worker: + def is_alive(self): + return True + def join(self, timeout=None): joined.set() |
