Orchestrata Ultimate › Tests › Reference › scripts › test_install_secret_guard

Tests reference — tests/scripts/test_install_secret_guard.py

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

Prose pending.

tests/scripts/test_install_secret_guard.py

source · 7 tests · 162 lines

Tests for .claude/hooks/install_secret_guard.py — the PreToolUse(Bash) guard

Kind Name Line Description
function test_hook_file_exists_and_is_syntactically_valid 95
function test_blocks_with_exit_two 101 Exit 2 is the channel that matters.
function test_allows_the_pinned_path 114
function test_a_mention_is_not_an_invocation 119 Searching for a flag must not read as using it.
function test_quoted_pipe_does_not_split_a_segment_mid_quote 130 Masking must happen before segmentation.
function test_unreadable_payload_does_not_brick_every_bash_call 140
function test_non_bash_tools_are_out_of_scope 151