test_waiting_wiki_comments_are_announced_by_count¶
Tests › tests/test_hook.py
What this test is for
Why it exists
2.1 (owner Q/A 2026-11-24): the hook says how many comments wait and where to read them — never their text. It speaks when the count changes, not on every call.
Given
env = _comment_env(tmp_path, "3")note = json.loads(_hook_used(env))["hookSpecificOutput"]["additionalContext"]
2 more
_comment_env(tmp_path, "4")_comment_env(tmp_path, "0")
When
- —
Then
- ✓ note contains "3 new wiki comments"
- ✓ note contains "action='comments'"
- ✓ _hook_used(env) equals ""
- ✓ _hook_used(env) contains "4 new wiki comments"
- ✓ _hook_used(env) equals ""
tests/test_hook.py:1495 · its file's page
What it checks (4)
assert "3 new wiki comments" in note and "action='comments'" in noteobserves_hook_usedvianoteassert _hook_used(env) == "", "the same count is not repeated"observes_hook_usedassert "4 new wiki comments" in _hook_used(env)observes_hook_usedassert _hook_used(env) == ""observes_hook_used
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_waiting_wiki_comments_are_announced_by_count→_comment_env→_hook_usedWhat 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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 measured