Orchestrata Ultimate › Tests › Reference › scripts › test_proportionate_test_scope
Tests reference — tests/scripts/test_proportionate_test_scope.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_proportionate_test_scope.py
source · 15 tests · 241 lines
Tests for .claude/hooks/proportionate-test-scope.sh — scope by query.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_a_script_whose_name_contains_a_runner_name_is_not_a_test_run |
229 | The runner must be matched as a path component, not as a substring. |
| class | TestABoundedDiffDoesNotGetTheWholeSuite |
118 | |
| method | TestABoundedDiffDoesNotGetTheWholeSuite.test_the_bare_full_runner_is_denied |
119 | |
| method | TestABoundedDiffDoesNotGetTheWholeSuite.test_the_streaming_runner_aimed_at_the_whole_tree_is_denied |
123 | tests/ IS the whole tree; only a narrower path is scoped. |
| method | TestABoundedDiffDoesNotGetTheWholeSuite.test_worker_flags_are_not_mistaken_for_paths |
135 | -j 8 must not read as a target, or nothing would ever be denied. |
| method | TestABoundedDiffDoesNotGetTheWholeSuite.test_the_denial_hands_back_a_runnable_command |
143 | |
| method | TestABoundedDiffDoesNotGetTheWholeSuite.test_the_denial_states_the_escape_hatch |
152 | A guard with no sanctioned way past it gets routed around. |
| class | TestRunsThatMustNotBeBlocked |
160 | |
| method | TestRunsThatMustNotBeBlocked.test_an_untestable_change_denies_with_missing_test_guidance |
161 | Doctrine 2026-08-26 (2948d6d1b): an untested file is a missing test, |
| method | TestRunsThatMustNotBeBlocked.test_a_stated_reason_is_always_enough |
174 | |
| method | TestRunsThatMustNotBeBlocked.test_an_already_scoped_run_is_none_of_this_guards_business |
184 | |
| method | TestRunsThatMustNotBeBlocked.test_a_clean_tree_has_nothing_to_scope_against |
196 | |
| method | TestRunsThatMustNotBeBlocked.test_a_command_that_is_not_a_test_run_is_ignored |
199 | |
| method | TestRunsThatMustNotBeBlocked.test_a_tree_outside_this_repo_is_left_alone |
203 | Elsewhere there is no oracle, so there is no satisfying action. |
| class | TestWiring |
208 | |
| method | TestWiring.test_hook_is_registered_as_a_bash_pretooluse_hook |
209 | |
| method | TestWiring.test_the_hook_is_executable |
221 | rulings_lint verifies the mechanism a ruling declares. |
| method | TestWiring.test_the_oracle_it_defers_to_exists |
225 |