fix: bind UI jobs and recovery actions to captured scope
This commit is contained in:
1 parent
601dd7b6b2
commit
cd7a5e0ca1
20 files changed
+1570
-297
No files matched your search
@@ -241,7 +241,14 @@ def test_common_admission_refusal_publishes_bound_receipt_and_ui_can_reopen(qtbo
|
||||
session.process.poll = lambda: 1
|
||||
launched = []
|
||||
window = load_window(qtbot, tmp_path, monkeypatch,
|
||||
native_backup_launcher=lambda req: (launched.append(req) or session))
|
||||
native_backup_launcher=lambda req: (launched.append(req) or session),
|
||||
status_refresher=lambda names, _: {name:'UNKNOWN' for name in names})
|
||||
# Deliver the receipt to its actual library view; a foreign view must not
|
||||
# receive an old session's status label after Task 4's callback isolation.
|
||||
window.path_lease_factory = lambda path: SimpleNamespace(mentor_path=path, display_path=path,
|
||||
drive='', remote_root='', close=lambda:None, retain_for_recovery=lambda:None)
|
||||
window.lmc_edit.setText(str(session.library)); window.load_library()
|
||||
qtbot.waitUntil(lambda:not window.busy)
|
||||
session.block = 'Beta'; record['block'] = 'Beta'
|
||||
session.job.with_name('result.json').write_text(json.dumps(record), encoding='utf-8')
|
||||
window._native_backup_session = session
|
||||
|
||||
Reference in new issue
Block a user