test_writing_through_an_inspect_verb_is_not_an_inspection¶
Tests › tests/test_hook.py
What this test is for
Why it exists
`cat > file <<'EOF'` uses an inspect VERB to WRITE, and this whole session wrote its probe scripts that way. Counting those as reads would put the noise straight back, and the note would then be advising `dossier` for a file that did not exist a moment ago.
Verifies REQ-DDB-WIKI-054
Given
- —
When
for command in ("cat > out.py <<'EOF'", "cat a.py > b.py", "grep x a.py > hits.txt"): assert not hook._is_inspection(command), f"{command!r} writes rather than inspects"
Then
- —
tests/test_hook.py:1181 · its file's page
What it checks (1)
assert not hook._is_inspection(command), f"{command!r} writes rather than inspects"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 |