Orchestrata Ultimate › Tests › Reference › claude › test_session_open_hook_coverage

Tests reference — tests/claude/test_session_open_hook_coverage.py

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

Prose pending.

tests/claude/test_session_open_hook_coverage.py

source · 21 tests · 405 lines

Coverage tests for claude/hooks/session_open_hook.py — the

Kind Name Line Description
function test_detect_start_request_variants 94
function test_detect_start_request_rejects_other_prompts 103
function test_find_project_root_finds_context_json 115
function test_find_project_root_none_when_absent 124
function test_get_session_state_reads_fields 136
function test_get_session_state_missing_file_defaults 152
function test_get_session_state_bad_json_defaults 158
function test_list_review_docs_no_dir 172
function test_list_review_docs_sorted_and_capped 177
function test_format_context_already_open 197
function test_format_context_begin_success_with_tasks_and_reviews 220
function test_format_context_begin_failure 244
function test_format_context_no_begin_result_not_open 256
function test_sync_kg_no_script_returns_silently 271
function test_sync_kg_starts_background_sync 278
function test_begin_session_cli_missing_returns_clean_error 302 With session not on PATH and no project .venv, begin_session must
function test_main_invalid_json_passes_through 347
function test_main_non_start_prompt_passes_through 361
function test_main_no_context_json_reports_no_root 367
function test_main_already_open_session 377
function test_main_closed_session_begins_new_one 390