test_a_missing_explicit_doxyfile_does_not_propose_passing_one¶
Tests › tests/test_doxyfile_refusal_messages.py
What this test is for
Why it exists
The literal gh#4 complaint. The user passed --doxyfile; the path is not on disk; the old text answered "Pass --doxyfile". "Never proposes an action already taken" is the property, so this asserts the ABSENCE of that advice as well as the presence of the path that was actually tried.
Given
missing = tmp_path / "nope" / "Doxyfile"
When
outcome = describe_doxyfile_resolution(explicit=missing, repo_root=None, candidates=[])
Then
- ✓ outcome.kind equals DOXYFILE_EXPLICIT_MISSING
- ✓ outcome.message contains str(missing)
- ✓ outcome.message contains "--repo-root"
- ✓ outcome.message.lower() does not contain "pass --doxyfile"
tests/test_doxyfile_refusal_messages.py:62 · its file's page
What it checks (4)
assert outcome.kind == DOXYFILE_EXPLICIT_MISSINGobservesdescribe_doxyfile_resolutionviaoutcomeassert str(missing) in outcome.message, "the message must name the path that was tried"observesdescribe_doxyfile_resolutionviaoutcomeassert "--repo-root" in outcome.message, "it must name the flag that changes the outcome"observesdescribe_doxyfile_resolutionviaoutcomeassert "pass --doxyfile" not in outcome.message.lower(), ( "it must not propose the flag the user just used" )observesdescribe_doxyfile_resolutionviaoutcome
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-001 measured