Release SyncVito 1.0.11
This commit is contained in:
1 parent
7098fa1c0c
commit
ccb89191b5
6 files changed
+62
-8
No files matched your search
@@ -137,3 +137,17 @@ def test_stop_persists_running_task_and_queue_for_restart(coordinator: SyncCoord
|
||||
|
||||
assert coordinator.config.settings.paused is True
|
||||
assert coordinator.config.settings.pending_queue == [task1.id, task2.id]
|
||||
|
||||
|
||||
def test_enqueue_all_unpauses_and_runs(coordinator: SyncCoordinator) -> None:
|
||||
from types import SimpleNamespace
|
||||
|
||||
coordinator.set_paused(True)
|
||||
workers = []
|
||||
coordinator.pool = SimpleNamespace(start=workers.append)
|
||||
|
||||
coordinator.enqueue_all()
|
||||
|
||||
assert not coordinator.config.settings.paused
|
||||
assert len(workers) == 1
|
||||
assert coordinator.running_task_id == coordinator.config.tasks[0].id
|
||||
Reference in new issue
Block a user