test_requirements_export_as_sphinx_needs¶
Tests › tests/test_wiki_exports.py
What this test is for
Why it exists
needs.json: a version holding one need per requirement, typed `req`.
Verifies REQ-DDB-WIKI-029
Given
data = json.loads((_html(site) / "exports/needs.json").read_text())version = data["versions"][data["current_version"]]need = version["needs"]["REQ-W-001"]
When
- —
Then
- ✓ need["type"] equals "req"
- ✓ need["title"] equals "Load the data"
- ✓ need["content"] contains "Every item is parsed once"
- ✓ version["needs_amount"] equals 3
tests/test_wiki_exports.py:71 · its file's page
What it checks (2)
assert need["type"] == "req" and need["title"] == "Load the data"not attributedassert "Every item is parsed once" in need["content"] and version["needs_amount"] == 3not 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
test_requirements_export_as_sphinx_needs→_htmlWhat 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-029 | catalog | unknown |