Orchestrata Ultimate › Tests › Reference › session › test_coverage_session_manager

Tests reference — tests/session/test_coverage_session_manager.py

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

Prose pending.

tests/session/test_coverage_session_manager.py

source · 15 tests · 243 lines

Test coverage for session_manager.py uncovered lines.

Covers: kernel.session_manager

Kind Name Line Description
class TestSessionAttachDetachVolk 23 Test Session.attach_volk() and detach_volk() including logging.
method TestSessionAttachDetachVolk.test_attach_volk_not_in_list 26 Test attaching a volk that's not already attached (covers lines 59-61).
method TestSessionAttachDetachVolk.test_attach_volk_already_in_list 41 Test attaching a volk that's already attached (no-op).
method TestSessionAttachDetachVolk.test_detach_volk_in_list 56 Test detaching a volk that's attached (covers lines 69-71).
method TestSessionAttachDetachVolk.test_detach_volk_not_in_list 72 Test detaching a volk that's not attached (no-op).
class TestSessionFromDictValidation 88 Test Session.from_dict() validation and error handling.
method TestSessionFromDictValidation.test_from_dict_non_dict_input 91 Test from_dict with non-dict input (covers line 111).
method TestSessionFromDictValidation.test_from_dict_invalid_start_time_format 102 Test from_dict with invalid start_time format (covers lines 115-116).
method TestSessionFromDictValidation.test_from_dict_missing_start_time 113 Test from_dict with missing start_time (covers lines 115-116).
method TestSessionFromDictValidation.test_from_dict_invalid_end_time_format 123 Test from_dict with invalid end_time format (covers lines 122-123).
method TestSessionFromDictValidation.test_from_dict_missing_session_id 135 Test from_dict with missing session_id (covers lines 135-138).
method TestSessionFromDictValidation.test_from_dict_missing_user_id 145 Test from_dict with missing user_id (covers lines 135-138).
method TestSessionFromDictValidation.test_from_dict_invalid_status_value 155 Test from_dict with invalid status value (covers lines 135-138).
method TestSessionFromDictValidation.test_from_dict_valid_with_all_fields 167 Test from_dict with all valid fields.
method TestSessionFromDictValidation.test_from_dict_valid_with_minimal_fields 192 Test from_dict with only required fields.
class TestSessionManagerInitExceptionCleanup 213 Test SessionManager.init() exception cleanup (covers lines 192-207).
method TestSessionManagerInitExceptionCleanup.test_init_redis_connection_failure 216 Test SessionManager init with Redis connection failure.
method TestSessionManagerInitExceptionCleanup.test_init_graph_connection_failure 233 Test SessionManager init with graph connection failure.