Orchestrata Ultimate › Tests › Reference › session › test_handover_coverage
Tests reference — tests/session/test_handover_coverage.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_handover_coverage.py
source · 25 tests · 306 lines
Coverage tests for session.handover — HandoverManager.
Covers: session.context, session.handover, session.models
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestBuildHandoff |
58 | Test building handoff data. |
| method | TestBuildHandoff.test_build_empty_handoff |
61 | Test building handoff with no arguments. |
| method | TestBuildHandoff.test_build_full_handoff |
71 | Test building handoff with all fields. |
| class | TestAttachAndGet |
92 | Test attaching and retrieving handoff from session. |
| method | TestAttachAndGet.test_attach_handoff |
95 | Test attaching handoff to existing session. |
| method | TestAttachAndGet.test_attach_to_nonexistent_session |
103 | Test attaching to non-existent session returns False. |
| method | TestAttachAndGet.test_get_handoff_from_session |
109 | Test retrieving handoff from session. |
| method | TestAttachAndGet.test_get_handoff_nonexistent |
119 | Test retrieving from non-existent session returns None. |
| method | TestAttachAndGet.test_get_handoff_no_handoff |
123 | Test retrieving from session without handoff returns None. |
| class | TestGetLatest |
133 | Test getting latest session handoff. |
| method | TestGetLatest.test_get_latest_no_sessions |
136 | Test returns None when no sessions. |
| method | TestGetLatest.test_get_latest_with_handoff |
140 | Test returns latest session's handoff. |
| method | TestGetLatest.test_get_latest_no_handoff |
149 | Test returns None when latest session has no handoff. |
| class | TestHasBlockersAndWork |
159 | Test blocker and active work checks. |
| method | TestHasBlockersAndWork.test_has_blockers_true |
162 | Test has_blockers returns True when blockers exist. |
| method | TestHasBlockersAndWork.test_has_blockers_false |
169 | Test has_blockers returns False when no blockers. |
| method | TestHasBlockersAndWork.test_has_blockers_no_session |
175 | Test has_blockers returns False for missing session. |
| method | TestHasBlockersAndWork.test_has_active_work_true |
179 | Test has_active_work returns True when work exists. |
| method | TestHasBlockersAndWork.test_has_active_work_false |
186 | Test has_active_work returns False when no work. |
| class | TestFormatDisplay |
196 | Test handoff formatting. |
| method | TestFormatDisplay.test_format_empty_handoff |
199 | Test formatting empty handoff produces no sections. |
| method | TestFormatDisplay.test_format_full_handoff |
205 | Test formatting handoff with all sections. |
| method | TestFormatDisplay.test_format_partial_handoff |
225 | Test formatting handoff with only some sections. |
| class | TestMergeHandoffs |
236 | Test merging multiple handoffs. |
| method | TestMergeHandoffs.test_merge_two_handoffs |
239 | Test merging two handoffs combines all fields. |
| method | TestMergeHandoffs.test_merge_deduplicates |
255 | Test merge removes duplicates. |
| method | TestMergeHandoffs.test_merge_empty_handoffs |
262 | Test merging empty handoffs produces empty result. |
| method | TestMergeHandoffs.test_merge_single_handoff |
268 | Test merging single handoff returns its data. |
| method | TestMergeHandoffs.test_merge_three_handoffs |
274 | Test merging three handoffs. |
| class | TestExtractFromSession |
286 | Test extracting handoff from session data. |
| method | TestExtractFromSession.test_extract_from_session |
289 | Test extraction builds handoff from session fields. |
| method | TestExtractFromSession.test_extract_nonexistent_session |
302 | Test extraction from non-existent session returns empty. |