test_the_default_theme_is_bundled_and_self_contained

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Given

  1. css = site["_static/clew.css"]
  2. for name, text in site.items(): if name.endswith(".html"): assert "fonts.googleapis" not in text and "https://cdn" not in text, name assert "_static/clew.css" in text, name
→

When

  1. —
→

Then

  1. ✓ css contains "--paper:"
  2. ✓ css contains "--acc:"
  3. ✓ site["_static/fonts/clew-fonts.css"] contains "@font-face"
  4. ✓ {"manrope.ttf", "newsreader.ttf", "jetbrains-mono.ttf"} is at most set(site["__fonts__"].split())
  5. ✓ site["__licenses__"] contains "OFL"

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

What it checks (6)

  1. assert "--paper:" in css and "--acc:" in css not attributed
  2. assert "@font-face" in site["_static/fonts/clew-fonts.css"] not attributed
  3. assert {"manrope.ttf", "newsreader.ttf", "jetbrains-mono.ttf"} <= set(site["__fonts__"].split()) not attributed
  4. assert "OFL" in site["__licenses__"] not attributed
  5. assert "fonts.googleapis" not in text and "https://cdn" not in text, name not attributed
  6. assert "_static/clew.css" in text, name 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 (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