test_a_referenced_symbol_has_a_section_on_its_files_page

Tests › tests/test_wiki_symbols.py

passed Passed in the packaged run.

What this test is for

Why it exists

P1f: signature, neighbours and the web link, requirements, flows and bundled body.

Verifies REQ-DDB-WIKI-025 REQ-DDB-WIKI-026 REQ-DDB-WIKI-027

Given

  1. page = site["sym-src-data-py.html"]
  2. load = page[page.index('id="s-load"') :]
2 more
  1. load = load[: load.index('id="s-parse"')] if 'id="s-parse"' in load else load
  2. near = load[load.index('class="near"') :]
→

When

  1. —
→

Then

  1. ✓ load contains 'href="map.html#n=load@src/data.py"'
  2. ✓ near contains ">parse<"
  3. ✓ near contains ">finish<"
  4. ✓ load contains 'href="requirements.html#REQ-W-001"'
  5. ✓ load contains 'href="flow-load.html"'
  6. ✓ page[page.index('id="s-parse"') :] contains "SECRET_BODY_MARKER"

tests/test_wiki_symbols.py:31 · its file's page

What it checks (5)

  1. assert 'href="map.html#n=load@src/data.py"' in load not attributed
  2. assert ">parse<" in near and ">finish<" in near not attributed
  3. assert 'href="requirements.html#REQ-W-001"' in load not attributed
  4. assert 'href="flow-load.html"' in load not attributed
  5. assert "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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-026catalogunknown
REQ-DDB-WIKI-027catalogunknown