test_a_referenced_symbol_has_a_section_on_its_files_page¶
Tests › tests/test_wiki_symbols.py
What this test is for
Why it exists
P1f: signature, neighbours and the web link, requirements, flows and bundled body.
Given
page = site["sym-src-data-py.html"]load = page[page.index('id="s-load"') :]
2 more
load = load[: load.index('id="s-parse"')] if 'id="s-parse"' in load else loadnear = load[load.index('class="near"') :]
When
- —
Then
- ✓ load contains 'href="map.html#n=load@src/data.py"'
- ✓ near contains ">parse<"
- ✓ near contains ">finish<"
- ✓ load contains 'href="requirements.html#REQ-W-001"'
- ✓ load contains 'href="flow-load.html"'
- ✓ page[page.index('id="s-parse"') :] contains "SECRET_BODY_MARKER"
tests/test_wiki_symbols.py:31 · its file's page
What it checks (5)
assert 'href="map.html#n=load@src/data.py"' in loadnot attributedassert ">parse<" in near and ">finish<" in nearnot attributedassert 'href="requirements.html#REQ-W-001"' in loadnot attributedassert 'href="flow-load.html"' in loadnot attributedassert "SECRET_BODY_MARKER" in page[page.index('id="s-parse"') :]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 (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-026 | catalog | unknown |
| REQ-DDB-WIKI-027 | catalog | unknown |