Orchestrata Ultimate › Tests › Reference › scripts › test_hooks_pre_commit
Tests reference — tests/scripts/test_hooks_pre_commit.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_hooks_pre_commit.py
source · 12 tests · 334 lines
The tracked pre-commit hook (scripts/hooks/pre-commit) under a venv-less PATH.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_repo_venv_exists_so_the_preference_is_exercised |
103 | The venv branch is the one under test; a missing venv would test the fallback. |
| function | test_secrets_gate_passes_with_no_venv_on_path |
109 | With nothing staged and no venv on PATH the hook exits 0 — the secrets gate |
| function | test_system_python3_alone_cannot_import_the_gate |
120 | The fallback interpreter really is unusable for the gate on this host — |
| function | test_hook_blocks_a_code_review_error |
193 | |
| function | test_hook_blocks_a_test_review_warning |
203 | |
| function | test_hook_passes_clean_files_and_shows_the_reviews_ran |
212 | |
| function | test_hook_does_not_block_a_conftest |
222 | test-review.py declines conftest.py with no report; the shell review this |
| function | test_hook_blocks_when_a_reviewer_is_missing |
232 | No verdict is not a pass: the reviewer cannot even start. |
| function | test_hook_blocks_without_a_project_interpreter |
243 | The secrets gate is left out of this sandbox, so the block comes from the |
| function | test_hook_regenerates_and_stages_both_maps_when_python_is_staged |
297 | |
| function | test_hook_skips_the_map_step_when_only_non_python_is_staged |
313 | |
| function | test_hook_warns_but_does_not_block_when_the_map_generator_is_missing |
326 |