fix: keep resource checks responsive and retain import diagnostics
This commit is contained in:
1 parent
7bdaaeb2ec
commit
656f43e2ff
20 files changed
+455
-48
No files matched your search
@@ -36,7 +36,7 @@ def ui(qtbot, tmp_path):
|
||||
def settle():
|
||||
qtbot.waitUntil(lambda:not window._workers and not window._task_query.busy
|
||||
and not window._context_query.busy and not window._feedback_query.busy
|
||||
and not window._log_presenter.query.busy,timeout=5000)
|
||||
and not window._log_presenter.query.busy and not window._resource_status.busy,timeout=5000)
|
||||
def open_task(task):
|
||||
window.open_task(task.task_id)
|
||||
qtbot.waitUntil(lambda:not window._context_query.busy and not window._loading,timeout=5000)
|
||||
|
||||
@@ -23,6 +23,20 @@ def test_current_task_executes_only_after_confirmation_and_no_match_is_completed
|
||||
assert w.run_panel.new_round_button.isEnabled()
|
||||
|
||||
|
||||
def test_batch_execute_button_tracks_remaining_tasks(ui):
|
||||
w = ui.window
|
||||
w._quick_run_confirmer = lambda *_args: True
|
||||
w._prepare_quick_run()
|
||||
ui.settle()
|
||||
# A completed selection must still allow execution of its pending sibling.
|
||||
assert w.task_list.queue_button.isEnabled()
|
||||
w.task_list.queue_button.click()
|
||||
ui.settle()
|
||||
assert len(ui.calls) == 2
|
||||
assert not w.task_list.queue_button.isEnabled(), 'a completed batch must not offer a no-op execution button'
|
||||
assert w.run_panel.new_round_button.isEnabled()
|
||||
|
||||
|
||||
@pytest.mark.parametrize('value',[False,True])
|
||||
def test_changed_value_policy_stops_stale_confirmation_before_worker(ui,value):
|
||||
w=ui.window;task=ui.tasks[0]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Readable logs and execution feedback on the current project-task interface."""
|
||||
"""UI log and feedback coverage, collectable alongside the service feedback tests."""
|
||||
import json
|
||||
from dx_productivity.trial_task_center.errors import TaskCenterError
|
||||
from dx_productivity.trial_task_center.ui.messages import (
|
||||
Reference in new issue
Block a user