feat: complete native BOM and Harness execution acceptance
This commit is contained in:
1 parent
4f8fbd7806
commit
65438cb7e5
234 files changed
+24402
-865
No files matched your search
@@ -1,3 +1,21 @@
|
||||
def test_reading_history_does_not_block_current_task_confirmation(ui):
|
||||
window = ui.window
|
||||
ui.settle()
|
||||
confirmations = []
|
||||
window._quick_run_confirmer = lambda *args: confirmations.append(args) or False
|
||||
original = window.history_panel._worker
|
||||
window.history_panel._worker = object()
|
||||
try:
|
||||
window._update_gates()
|
||||
assert window.run_panel.quick_run_button.isEnabled()
|
||||
window.run_panel.quick_run_button.click()
|
||||
assert confirmations == [('current', 1, 1)]
|
||||
assert not ui.calls
|
||||
finally:
|
||||
window.history_panel._worker = original
|
||||
window._update_gates()
|
||||
|
||||
|
||||
def test_owned_modal_can_be_handled_while_execution_worker_is_busy(ui, monkeypatch):
|
||||
window = ui.window
|
||||
ui.settle()
|
||||
@@ -19,7 +37,7 @@ def test_owned_modal_can_be_handled_while_execution_worker_is_busy(ui, monkeypat
|
||||
window._update_gates()
|
||||
|
||||
|
||||
def test_retained_resource_force_requires_explicit_operator_choice(ui, monkeypatch):
|
||||
def test_retained_resource_force_requires_explicit_operator_choice(ui, qtbot, monkeypatch):
|
||||
from PySide6.QtWidgets import QMessageBox
|
||||
window = ui.window
|
||||
ui.settle()
|
||||
@@ -39,4 +57,4 @@ def test_retained_resource_force_requires_explicit_operator_choice(ui, monkeypat
|
||||
monkeypatch.setattr(QMessageBox, 'question', lambda *_a, **_k: QMessageBox.StandardButton.Yes)
|
||||
window.run_panel.cleanup_resources_button.setEnabled(True)
|
||||
window._cleanup_batch_resources()
|
||||
assert forced == [True]
|
||||
qtbot.waitUntil(lambda: forced == [True])
|
||||
Reference in new issue
Block a user