Orchestrata Ultimate › Tests › Reference › scripts › test_permission_no_hang
Tests reference — tests/scripts/test_permission_no_hang.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_permission_no_hang.py
source · 8 tests · 177 lines
Tests for .claude/hooks/permission_no_hang.py — the PermissionRequest hook
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_hook_file_exists_and_is_syntactically_valid |
64 | |
| function | test_source_never_emits_an_allow_decision |
101 | The hook must be structurally incapable of widening permissions. |
| function | test_denies_when_the_classifier_denied |
117 | |
| function | test_denial_quotes_the_command_so_the_refusal_is_actionable |
128 | |
| function | test_stays_out_of_the_way_when_the_classifier_did_not_deny |
136 | allow -> the call proceeds on its own. None -> an explicit ask rule, |
| function | test_ignores_other_hook_events |
145 | |
| function | test_unreadable_payload_leaves_the_permission_flow_untouched |
153 | A moved harness contract must not deny every tool call in every project. |
| function | test_non_bash_denial_still_refuses_without_a_command |
166 |