test_no_session_yet_is_said_not_sent

Tests › tests/test_wiki_channel.py

passed Passed in the packaged run.

What this test is for

Why it exists

Before any tool call there is no session to push on.

Given

  1. hub = channel.Channel()
  2. 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. ✓ caplog.text contains "no session"

tests/test_wiki_channel.py:97 · 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 "no session" 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.