test_discover_doxyfile

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

What this test is for

Why it exists

Root Doxyfile wins; a one-level-down Doxyfile is the fallback; neither present yields None.

Verifies REQ-DDB-MCP-001 REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009

Given

  1. repo = tmp_path / "repo"
  2. (repo / "docs").mkdir(parents=True)
2 more
  1. (repo / "docs" / "Doxyfile").write_text("")
  2. (repo / "Doxyfile").write_text("")
→

When

  1. —
→

Then

  1. ✓ st.discover_doxyfile(repo) is None
  2. ✓ st.discover_doxyfile(repo) equals repo / "docs" / "Doxyfile"
  3. ✓ st.discover_doxyfile(repo) equals repo / "Doxyfile"

tests/test_mcp_server.py:2482 · its file's page

What it checks (3)

  1. assert st.discover_doxyfile(repo) is None not attributed
  2. assert st.discover_doxyfile(repo) == repo / "docs" / "Doxyfile" not attributed
  3. assert st.discover_doxyfile(repo) == repo / "Doxyfile" not attributed

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 (5)

requirementlinked byimplementers exercised
REQ-DDB-MCP-001catalogunknown
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.