Orchestrata Ultimate › Tests › Reference › scripts › test_no_doubles_py
Tests reference — tests/scripts/test_no_doubles_py.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_no_doubles_py.py
source · 8 tests · 169 lines
Tests for .claude/hooks/no-doubles-py.sh — the PreToolUse(Write|Edit|
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_a_double_in_a_python_write_is_blocked |
78 | |
| function | test_the_block_message_names_the_file_and_the_rule |
82 | |
| function | test_a_clean_python_write_is_allowed |
105 | |
| function | test_a_non_python_file_is_not_this_guards_business |
109 | |
| function | test_the_words_inside_a_docstring_are_prose_not_code |
115 | The guard strips string literals and comments before matching, so rule |
| function | test_a_grpc_client_stub_is_not_a_test_double |
125 | The class rule is anchored to the class NAME start, so generated gRPC |
| function | test_an_unreadable_payload_blocks_rather_than_permits |
146 | Measured 2026-08-08: this was the last guard in the fleet failing open. |
| function | test_hook_is_registered_on_the_write_matcher |
157 | RUL-023: a hook nothing invokes is not a delivery. |