test_the_hook_manifest_offers_the_wiki_check¶
Tests › tests/test_wiki_build.py
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
hooks = {h["id"]: h for h in yaml.safe_load(Path(".pre-commit-hooks.yaml").read_text())}hook = hooks["clew-wiki-check"]
When
- —
Then
- ✓ hook["entry"] equals "clew wiki check --refresh --before-tests"
- ✓ hook["pass_filenames"] is False
tests/test_wiki_build.py:186 · its file's page
What it checks (2)
assert hook["entry"] == "clew wiki check --refresh --before-tests"not attributedassert hook["pass_filenames"] is Falsenot 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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-003 | catalog | unknown |