test_a_single_conventional_candidate_is_accepted¶
Tests › tests/test_kconfig.py
What this test is for
Why it exists
The refusal above must not be a refusal to look. One candidate is not ambiguous, and a fixture that only ever tests the refusal would pass with discovery hard-wired to None.
Verifies REQ-DDB-PIPE-007 REQ-DDB-PIPE-014 REQ-DDB-QUERY-006
Given
root = tmp_path / "app_only"(root / "app").mkdir(parents=True)(root / "app" / KCONFIG_NAME).write_text("config A\n\tbool\n", encoding="utf-8")
When
discover_kconfig(root)
Then
- ✓ discover_kconfig(root).path equals Path("app/Kconfig")
tests/test_kconfig.py:151 · its file's page
What it checks (1)
assert discover_kconfig(root).path == Path("app/Kconfig")observesdiscover_kconfig
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.
Requirements it verifies (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-007 | catalog | unknown |
| REQ-DDB-PIPE-014 | catalog | 1 of 5: within_repo |
| REQ-DDB-QUERY-006 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-005 measured