Orchestrata Ultimate › Tests › Reference › kernel › test_pipeline_extended

Tests reference — tests/kernel/test_pipeline_extended.py

Module of tests/kernel, split out because the directory page would be too large.

Prose pending.

tests/kernel/test_pipeline_extended.py

source · 18 tests · 499 lines

Extended tests for kernel.pipeline to cover remaining uncovered paths.

Covers: kernel.pipeline, core.packet/ (package)

Kind Name Line Description
class TestPipelineRunnerSessionPaths 67 Cover _session_log, _session_log_transition, submit_intent, shutdown,
method TestPipelineRunnerSessionPaths.test_session_log_exception 71 _session_log exception path (lines 208-211).
method TestPipelineRunnerSessionPaths.test_session_log_transition_exception 81 _session_log_transition exception path (lines 241-242).
method TestPipelineRunnerSessionPaths.test_human_handler_qa_complete_with_session 97 _human_handler qa_complete when session is available (lines 260-277).
method TestPipelineRunnerSessionPaths.test_human_handler_qa_complete_session_artifact_exception 130 _human_handler qa_complete when session.log_artifact raises
method TestPipelineRunnerSessionPaths.test_human_handler_qa_complete_session_end_exception 162 _human_handler qa_complete when session.end raises (lines 276-277).
method TestPipelineRunnerSessionPaths.test_submit_intent_session_begin_exception 186 submit_intent when session.begin raises (lines 310-314).
method TestPipelineRunnerSessionPaths.test_submit_intent_session_begin_success 199 submit_intent when session.begin succeeds (line 312).
method TestPipelineRunnerSessionPaths.test_shutdown_session_exception 215 shutdown when session.end raises (lines 558-559).
class TestPipelineRunnerRespondExtended 234 Cover respond() paths not exercised by existing tests.
method TestPipelineRunnerRespondExtended.test_respond_last_packet_from_human 237 respond finds target from reversed packets when last is from HUMAN
class TestPipelineRunnerRouteEscalationExtended 276 Cover _route_escalation edge cases.
method TestPipelineRunnerRouteEscalationExtended.test_route_escalation_depth_limit_three_agent_cycle 279 Escalation depth limit reached before hop-repeat limit by using a
method TestPipelineRunnerRouteEscalationExtended.test_route_escalation_unknown_target 335 Escalation response targets an unknown agent (line 505).
class TestPipelineRunnerApproveExtended 363 Cover approve() fallback volk and no-escalation-target paths.
method TestPipelineRunnerApproveExtended.test_approve_fallback_volk 366 approve falls back to a volk that is not IN_PROGRESS (line 638).
method TestPipelineRunnerApproveExtended.test_approve_no_active_volk 386 approve returns False when no volk is on the thread (lines 633-634).
method TestPipelineRunnerApproveExtended.test_approve_non_cx_no_escalation_target 393 approve for a non-U:Cx volk without escalation_target (lines 666, 675-677).
class TestPipelineRunnerResume 415 Cover resume(): no-checkpoint, mid-pipeline dispatch, and
method TestPipelineRunnerResume.test_resume_no_checkpoint_returns_none 419
method TestPipelineRunnerResume.test_resume_dispatches_to_stage_after_last_checkpoint 423 Two completed stages (U:BA then U:PM) resume by dispatching to the
method TestPipelineRunnerResume.test_resume_already_complete_returns_thread_id_without_dispatch 459 When the last checkpointed stage is the final one (U:Cp), there is
method TestPipelineRunnerResume.test_resume_unordered_stage_falls_back_and_stops 480 A checkpointed stage outside the choreography order (e.g. J:Junior)