test_a_non_inspecting_shell_command_is_not_pressure¶
Tests › tests/test_hook.py
What this test is for
Why it exists
gh#11. The hook fired on EVERY Bash call, and the note's own text says "N file-inspection calls, no index call" — so `git push`, `sleep 25` and `rm -rf` were being counted and reported as file inspections. The number was not merely noisy, it was FALSE, which is the failure this component's own reasoning says discredits everything else it says.
Verifies REQ-DDB-WIKI-054
Given
not_inspections = ( "git push origin main", "git status --short", "gh run watch 34045484280", "sleep 20", "rm -rf .claude/tmp/probe13", ".venv/bin/pre-commit run --all-files", "mkdir -p build", "npm install", ".venv/bin/python -m pytest tests/ -q", "echo hi", )
When
for command in not_inspections: assert not hook._is_inspection(command), ( f"{command!r} is not a file inspection and must not be counted as one" )
Then
- —
tests/test_hook.py:1102 · its file's page
What it checks (1)
assert not hook._is_inspection(command), ( f"{command!r} is not a file inspection and must not be counted as one" )observes_is_inspection
Where the product reaches it
main→_is_inspection(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-054 | catalog | unknown |