test_writing_through_an_inspect_verb_is_not_an_inspection

Tests › tests/test_hook.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. 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

  1. —

tests/test_hook.py:1181 · its file's page

What it checks (1)

  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

test_writing_through_an_inspect_verb_is_not_an_inspection→_is_inspection

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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-054catalogunknown