Orchestrata Ultimate › Tests › Reference › session › test_session_handover

Tests reference — tests/session/test_session_handover.py

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

Prose pending.

tests/session/test_session_handover.py

source · 27 tests · 479 lines

Comprehensive tests for handover.py - HandoverManager class.

Covers: session.context, session.handover, session.models

Kind Name Line Description
class TestHandoverManagerInit 87 Test HandoverManager initialization.
method TestHandoverManagerInit.test_init_with_string_path 90 Test initialization with string path.
method TestHandoverManagerInit.test_init_with_path_object 95 Test initialization with Path object.
class TestBuildHandoff 105 Test build_handoff() method.
method TestBuildHandoff.test_build_handoff_empty 108 Test building empty handoff.
method TestBuildHandoff.test_build_handoff_with_field 130 Test building handoff with individual fields.
method TestBuildHandoff.test_build_handoff_full 137 Test building full handoff.
class TestAttachToSession 158 Test attach_to_session() method.
method TestAttachToSession.test_attach_to_existing_session 161 Test attaching handoff to existing session.
method TestAttachToSession.test_attach_to_nonexistent_session 167 Test attaching handoff to nonexistent session.
class TestGetFromSession 177 Test get_from_session() method.
method TestGetFromSession.test_get_from_existing_session 180 Test getting handoff from existing session.
method TestGetFromSession.test_get_from_nonexistent_session 189 Test getting handoff from nonexistent session.
class TestGetLatest 198 Test get_latest() method.
method TestGetLatest.test_get_latest_no_sessions 201 Test getting latest handoff when no sessions.
method TestGetLatest.test_get_latest_with_session 206 Test getting latest handoff with session.
class TestHasBlockers 218 Test has_blockers() method.
method TestHasBlockers.test_has_blockers_no_session 221 Test checking blockers when no session.
method TestHasBlockers.test_has_blockers_with_blockers 226 Test checking blockers when blockers exist.
class TestHasActiveWork 245 Test has_active_work() method.
method TestHasActiveWork.test_has_active_work_no_session 248 Test checking active work when no session.
method TestHasActiveWork.test_has_active_work_with_work 253 Test checking active work when work exists.
class TestFormatDisplay 272 Test format_display() method.
method TestFormatDisplay.test_format_empty_handoff 275 Test formatting empty handoff.
method TestFormatDisplay.test_format_with_field 297 Test formatting with individual fields.
method TestFormatDisplay.test_format_full_handoff 307 Test formatting full handoff.
class TestMergeHandoffs 329 Test merge_handoffs() method.
method TestMergeHandoffs.test_merge_empty_handoffs 332 Test merging empty handoffs.
method TestMergeHandoffs.test_merge_single_handoff 340 Test merging single handoff.
method TestMergeHandoffs.test_merge_multiple_handoffs 346 Test merging multiple handoffs.
method TestMergeHandoffs.test_merge_deduplicates 358 Test merging deduplicates entries.
class TestExtractFromSession 370 Test extract_from_session() method.
method TestExtractFromSession.test_extract_from_nonexistent_session 373 Test extracting from nonexistent session.
method TestExtractFromSession.test_extract_from_session_with_data 380 Test extracting from session with data.
class TestHandoverManagerIntegration 395 Integration tests for HandoverManager.
method TestHandoverManagerIntegration.test_full_workflow 398 Test complete handover workflow.
method TestHandoverManagerIntegration.test_merge_workflow 441 Test handoff merging workflow.
method TestHandoverManagerIntegration.test_extract_and_format_workflow 467 Test extracting from session and formatting.