Verify desktop disappearance and finish private session feedback and native probes
This commit is contained in:
1 parent
fee1aff557
commit
48ad7b3592
13 files changed
+470
-25
No files matched your search
@@ -23,3 +23,15 @@ def test_feedback_uses_executing_child_and_ignores_previous_run_progress(tmp_pat
|
||||
path.write_text('incomplete JSON')
|
||||
assert service.execution_feedback(None, started_after=0).stage == ''
|
||||
store.close()
|
||||
def test_private_startup_and_shutdown_override_stale_worker_phase(tmp_path):
|
||||
import json
|
||||
from dx_productivity.trial_task_center.execution_feedback import read_feedback
|
||||
root = tmp_path / 'quick-run'
|
||||
root.mkdir()
|
||||
(root / 'worker-progress.json').write_text(json.dumps({'stage': 'capture'}))
|
||||
private = root / 'private-desktop.json'
|
||||
for state, expected in [('starting', 'private_startup'), ('closing', 'private_shutdown')]:
|
||||
private.write_text(json.dumps({'state': state}))
|
||||
assert read_feedback('task', 1, 1, 'running', tmp_path, 0).stage == expected
|
||||
private.write_text(json.dumps({'state': 'released'}))
|
||||
assert read_feedback('task', 1, 1, 'running', tmp_path, 0).stage == 'capture'
|
||||
Reference in new issue
Block a user