Orchestrata Ultimate › Tests › Reference › claude › test_session_context_hook_coverage

Tests reference — tests/claude/test_session_context_hook_coverage.py

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

Prose pending.

tests/claude/test_session_context_hook_coverage.py

source · 33 tests · 464 lines

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

Kind Name Line Description
function test_find_file_returns_first_existing 85
function test_find_file_skips_missing_returns_later 94
function test_find_file_returns_none_when_absent 102
function test_extract_json_full_marker_block 112
function test_extract_json_marker_block_bad_json_returns_none 125
function test_extract_json_simple_block_with_version 139
function test_extract_json_no_block_returns_none 145
function test_extract_json_simple_block_bad_json_returns_none 150
function test_load_json_file_valid 163
function test_load_json_file_invalid_returns_none 170
function test_load_json_file_missing_returns_none 177
function test_format_principles_empty 187
function test_format_principles_with_description_and_name_fallback 193
function test_format_prohibited_empty 212
function test_format_prohibited_critical_and_error_with_alternative 218
function test_format_prohibited_error_truncated_to_max_display 242
function test_format_python_standards_empty 260
function test_format_python_standards_tool_and_imports 266
function test_format_python_standards_pkg_not_dict_is_skipped 280
function test_format_testing_policy_empty 292
function test_format_testing_policy_mocking_disallowed_with_rationale 298
function test_format_testing_policy_mocking_disallowed_default_rationale 306
function test_format_testing_policy_mocking_allowed_and_run_command 312
function test_format_git_policy_empty 325
function test_format_git_policy_author_default_and_force_push 331
function test_format_git_policy_custom_author_and_branches 340
function test_main_full_config_from_claude_md 379
function test_main_constraints_json_fallback 401
function test_main_persona_fallback_when_no_config 412
function test_main_no_config_no_persona_empty_output 422
function test_main_invalid_json_stdin_still_runs 429
function test_main_claude_md_bad_json_falls_to_constraints 439
function test_main_claude_md_undecodable_falls_to_constraints 454