test_a_step_opens_a_dialog_with_the_data_it_carries

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Given

  1. page = _flow_page(site)
  2. blob = re.search(r'<script type="application/json"[^>]*>(.*?)</script>', page, re.S)
2 more
  1. steps = json.loads( blob.group(1).replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&") )
  2. parse = next(s for s in steps if s["callee"] == "parse")
→

When

  1. —
→

Then

  1. ✓ page contains "<dialog"
  2. ✓ page contains 'data-flow-control="play"'
  3. ✓ page contains 'data-flow-control="pause"'
  4. ✓ page contains 'data-flow-control="step"'
  5. ✓ parse["call"] contains 'parse(item, "SECRET_CALL_ARG")'
  6. ✓ parse["signature"] contains "raw, tag"
  7. ✓ parse["site"].startswith("src/data.py:") holds
  8. ✓ parse["link"] contains "example.invalid"

tests/test_wiki_site.py:401 · its file's page

What it checks (5)

  1. assert "<dialog" in page and 'data-flow-control="play"' in page observes _flow_page via page
  2. assert 'data-flow-control="pause"' in page and 'data-flow-control="step"' in page observes _flow_page via page
  3. assert 'parse(item, "SECRET_CALL_ARG")' in parse["call"] not attributed
  4. assert "raw, tag" in parse["signature"] not attributed
  5. assert parse["site"].startswith("src/data.py:") and "example.invalid" in parse["link"] not 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_a_step_opens_a_dialog_with_the_data_it_carries→_flow_page

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 (15)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown