test_a_missing_doxygen_is_refused_not_traced_back¶
Tests › tests/test_packaging.py
What this test is for
Why it exists
doxygen is the one prerequisite that CANNOT be a pip dependency — it is a C++ program shipped as a system package, and `pip install doxygen` finds no distribution. So on a clean machine it is the most likely thing to be missing, and it was the worst-handled: `subprocess.Popen` raised `FileNotFoundError: ... 'doxygen'` from twelve frames down, which reads as a crash in this tool rather than a missing prerequisite.
Given
monkeypatch.setattr(doxygen_module.shutil, "which", lambda _name: None)
When
doxygen_module.run_doxygen(REPO_ROOT / "nonexistent-Doxyfile", REPO_ROOT)message = str(exc.value)
Then
- ✓ raises DoxygenUnavailableError
- ✓ message contains "not on PATH"
- ✓ message contains "apt install doxygen"
- ✓ message contains "PyPI"
tests/test_packaging.py:227 · its file's page
What it checks (3)
assert "not on PATH" in messagenot attributedassert "apt install doxygen" in message, "the refusal must carry an install command"not attributedassert "PyPI" in message, "it must explain WHY it is not just another dependency"not attributed
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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-002 inferred
- REQ-DDB-INDEX-001 measured
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-006 inferred