Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
('agent_completion_authorization_create', 'create_authorized_completion'),
])
def test_readonly_renewal_actions_use_the_shared_recovery_protocol(monkeypatch, action, operation):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def test_existing_handoff_action_and_result_keep_the_renewed_review_explicit(monkeypatch):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
4 changes: 2 additions & 2 deletions test/unit_test/headless/test_agent_dag_background_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def test_background_worker_forwards_initial_and_explicit_approved_continuation(monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from je_auto_control.gui.dag_tab import _DagWorker
call = Mock(return_value={"approval_id": "approval"})
monkeypatch.setattr("je_auto_control.gui.dag_tab.manage_agent_dag", call)
Expand All @@ -27,7 +27,7 @@ def test_background_worker_forwards_initial_and_explicit_approved_continuation(m


def test_closing_the_view_does_not_stop_a_batch_already_accepted_by_the_service(service, monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
import shiboken6
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.dag_tab import DagTab
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_dag_batch_surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_versioned_api_and_catalog_expose_the_same_managed_batch_protocol():


def test_gui_registers_only_on_action_and_discards_graph_or_batch_selection_changes(monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
import shiboken6
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.dag_tab import DagTab, _DagWorker
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_dag_continuation_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


def test_review_and_run_actions_preserve_source_selection_and_do_not_auto_execute(monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
import shiboken6
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.dag_tab import DagTab, _DagWorker
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_evidence_handoff_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@pytest.mark.parametrize('operation', ['review_handoff', 'create_handoff', 'revoke_handoff'])
def test_actions_only_prepare_explicit_handoff_requests(monkeypatch, operation):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
5 changes: 4 additions & 1 deletion test/unit_test/headless/test_agent_native_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def test_wall_deadline_during_grounding_retires_before_input_cleanup(tmp_path):
runtime = AgentRuntime(tmp_path / "one.sqlite", targets={"fixture": adapter})
try:
specification = spec()
specification["budget"] = {"wall_seconds": 2, "action_seconds": 5}
# The wall budget must outlast the helper start and the first observe/act on a slow
# runner, and still run out (before the 20 s action limit) while the fourth observation
# sleeps for 30 seconds.
specification["budget"] = {"wall_seconds": 6, "action_seconds": 20}
task = runtime.submit(specification)
frame = runtime.observe(task.task_id)
runtime.act(task.task_id, {"tool": "AC_increment", "arguments": {"hold": True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_authenticated_http_can_review_and_create_without_executing_or_publishin


def test_gui_skill_selector_dispatches_review_and_creation_only_on_explicit_actions(monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
import shiboken6
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_skill_completion_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def test_gui_prepares_separate_trial_and_completion_fields_without_dispatch(monkeypatch):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_skill_execution_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
('accept', 'agent_skill_execution_accept_example'),
])
def test_gui_prepares_original_trial_and_separate_execution_without_dispatch(monkeypatch, operation, key):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_http_revoked_reviewer_refuses_recording_with_409(recording, tmp_path):


def test_gui_prepares_original_source_and_reader_fields_without_recording(monkeypatch):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_task_handoff_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@pytest.fixture
def tab(monkeypatch):
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/headless/test_agent_transfer_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@pytest.fixture
def tab():
pytest.importorskip('PySide6')
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
import shiboken6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_authenticated_http_preserves_owner_and_does_not_dispatch_inherited_queu


def test_gui_review_prepares_separate_explicit_request_and_refuses_wrong_selection(monkeypatch):
pytest.importorskip("PySide6")
pytest.importorskip("PySide6.QtWidgets", exc_type=ImportError) # also when Qt cannot load (no libEGL)
from PySide6.QtWidgets import QApplication
import shiboken6
from je_auto_control.gui.agent_tasks_tab import AgentTasksTab
Expand Down
Loading