test_a_repository_chooses_how_its_comments_reach_the_agent¶
Tests › tests/test_wiki_comments.py
What this test is for
Why it exists
2.1 (owner Q/A 2026-11-24): `wiki.comments.deliver` — `hook` (the default: the hook's count) and/or `channel` (a Claude Code channel push, when the server runs with CLEW_CHANNEL=1).
Verifies REQ-DDB-WIKI-054
Given
config, problems = _config(tmp_path, " title: x\n")config, problems = _config(tmp_path, " comments:\n deliver: [hook, channel]\n")config, problems = _config(tmp_path, " comments:\n deliver: [channel]\n")
When
- —
Then
- ✓ config.comments_deliver equals ("hook",)
- ✓ problems is false
- ✓ config.comments_deliver equals ("hook", "channel")
- ✓ problems is false
- ✓ config.comments_deliver equals ("channel",)
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 38 of 400 steps
… 6 steps between
… 343 later steps
tests/test_wiki_comments.py:135 · its file's page
What it checks (3)
assert config.comments_deliver == ("hook",) and not problemsnot attributedassert config.comments_deliver == ("hook", "channel") and not problemsnot attributedassert config.comments_deliver == ("channel",)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_repository_chooses_how_its_comments_reach_the_agent→_configWhat 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-054 | catalog | 1 of 18: all |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured