test_a_2026_07_28_session_is_not_pushed_to¶
Tests › tests/test_wiki_channel.py
What this test is for
Why it exists
Claude Code drops channel events there; clew says so instead of sending.
Given
sent = []async def notify(session, method, params): # noqa: ANN001, ANN202 sent.append(method)
5 more
monkeypatch.setattr(channel, "raw_notify", notify)monkeypatch.setattr(channel, "protocol_version", lambda session: "2026-07-28")hub = channel.Channel()hub.session = object()with caplog.at_level("INFO"): assert ( anyio.run( lambda: hub.send( "r", {"page": "a", "anchor": "", "quote": "", "body": "b", "id": "1"} ) ) is False )
When
- —
Then
- ✓ sent is false
- ✓ caplog.text contains "2026-07-28"
tests/test_wiki_channel.py:74 · its file's page
What it checks (2)
assert ( anyio.run( lambda: hub.send( "r", {"page": "a", "anchor": "", "quote": "", "body": "b", "id": "1"} ) ) is False )not attributedassert not sent and "2026-07-28" in caplog.textnot 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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 measured