test_requirements_export_as_sphinx_needs

Tests › tests/test_wiki_exports.py

passed Passed in the packaged run.

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

  1. data = json.loads((_html(site) / "exports/needs.json").read_text())
  2. version = data["versions"][data["current_version"]]
  3. need = version["needs"]["REQ-W-001"]
→

When

  1. —
→

Then

  1. ✓ need["type"] equals "req"
  2. ✓ need["title"] equals "Load the data"
  3. ✓ need["content"] contains "Every item is parsed once"
  4. ✓ version["needs_amount"] equals 3

tests/test_wiki_exports.py:71 · its file's page

What it checks (2)

  1. assert need["type"] == "req" and need["title"] == "Load the data" not attributed
  2. assert "Every item is parsed once" in need["content"] and version["needs_amount"] == 3 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_requirements_export_as_sphinx_needs→_html

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

requirementlinked byimplementers exercised
REQ-DDB-WIKI-029catalogunknown