test_two_returns_share_one_definition¶
Tests › tests/test_wiki_apiref.py
What this test is for
Why it exists
P6 at 390px (owner Q/A 2026-11-20): an entry with two distinct returns emitted a second `<dd>` with no `<dt>`; the `dl.api-doc` grid put it in the LABEL column, which grew to the sentence's width (844px) and pushed the page sideways. Several returns are one list in one dd.
Verifies REQ-DDB-WIKI-053
Given
- —
When
html = _doc_lists(Doc(prose="", returns=("A.", "B.")))
Then
- ✓ html.count("<dd>") == html.count("<dt>") == 1 holds
- ✓ html contains "<li>A.</li><li>B.</li>"
tests/test_wiki_apiref.py:456 · its file's page
What it checks (2)
assert html.count("<dd>") == html.count("<dt>") == 1, htmlobserves_doc_listsviahtmlassert "<li>A.</li><li>B.</li>" in htmlobserves_doc_listsviahtml
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
test_two_returns_share_one_definition→_doc_listsWhat 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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-053 | catalog | unknown |