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
@@ -154,6 +154,7 @@ def test_released_batch_can_resume_only_its_unexecuted_items(qtbot, tmp_path, mo
|
||||
action = window._resume_batch_action
|
||||
assert action.isEnabled()
|
||||
calls = []
|
||||
original_remaining = (window._batch_requests[1],)
|
||||
monkeypatch.setattr(window, '_run', lambda names, **kw: calls.append((names, kw)))
|
||||
action.click()
|
||||
assert calls == [(['Gamma'], {'maintenance': False})]
|
||||
assert calls == [(['Gamma'], {'maintenance': False, 'request_snapshot': original_remaining})]
|
||||
Reference in new issue
Block a user