test_a_2026_07_28_session_is_not_pushed_to

Tests › tests/test_wiki_channel.py

passed Passed in the packaged run.

What this test is for

Why it exists

Claude Code drops channel events there; clew says so instead of sending.

Given

  1. sent = []
  2. async def notify(session, method, params): # noqa: ANN001, ANN202 sent.append(method)
5 more
  1. monkeypatch.setattr(channel, "raw_notify", notify)
  2. monkeypatch.setattr(channel, "protocol_version", lambda session: "2026-07-28")
  3. hub = channel.Channel()
  4. hub.session = object()
  5. with caplog.at_level("INFO"): assert ( anyio.run( lambda: hub.send( "r", {"page": "a", "anchor": "", "quote": "", "body": "b", "id": "1"} ) ) is False )
→

When

  1. —
→

Then

  1. ✓ sent is false
  2. ✓ caplog.text contains "2026-07-28"

tests/test_wiki_channel.py:74 · its file's page

What it checks (2)

  1. assert ( anyio.run( lambda: hub.send( "r", {"page": "a", "anchor": "", "quote": "", "body": "b", "id": "1"} ) ) is False ) not attributed
  2. assert not sent and "2026-07-28" in caplog.text 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.

Also reaches 1 requirement

Its run touches their code; that is reach, not proof.