test_nothing_outside_the_site_is_served¶
Tests › tests/test_wiki_hub.py
What this test is for
Given
server, builder, live, _gone = hubbuilder.release.set()
3 more
cookie = f"clew_wiki={server.token}"_get(f"http://127.0.0.1:{server.port}/r/{live.slug}/", cookie)for path in ( f"/r/{live.slug}/../../registry.json", f"/r/{live.slug}/%2e%2e/%2e%2e/registry.json", "/r/nope/", ): status, _body, _h = _get(f"http://127.0.0.1:{server.port}{path}", cookie) assert status in (403, 404), path
When
- —
Then
- —
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.
thread `WikiHub._build` — `_build` (clew/mcp_server/wikihub.py) · 5 of 7 steps
tests/test_wiki_hub.py:120 · its file's page
What it checks (1)
assert status in (403, 404), pathnot 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_nothing_outside_the_site_is_served→_getWhat 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 | unknown |
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured
- REQ-DDB-WIKI-032 measured
- REQ-DDB-WIKI-033 measured
- REQ-DDB-WIKI-034 measured