test_the_hook_manifest_offers_the_wiki_check

Tests › tests/test_wiki_build.py

passed Passed in the packaged run.

What this test is for

Why it exists

`.pre-commit-hooks.yaml` publishes `clew-wiki-check`, running `check --refresh --before-tests`.

Verifies REQ-DDB-WIKI-003

Given

  1. hooks = {h["id"]: h for h in yaml.safe_load(Path(".pre-commit-hooks.yaml").read_text())}
  2. hook = hooks["clew-wiki-check"]
→

When

  1. —
→

Then

  1. ✓ hook["entry"] equals "clew wiki check --refresh --before-tests"
  2. ✓ hook["pass_filenames"] is False

tests/test_wiki_build.py:186 · its file's page

What it checks (2)

  1. assert hook["entry"] == "clew wiki check --refresh --before-tests" not attributed
  2. assert hook["pass_filenames"] is False 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 (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-003catalogunknown