test_shipped_descriptions_are_rendered_and_substantial¶
Tests › tests/test_descriptions.py
What this test is for
Why it exists
An unfilled `{placeholder}` reaching a model's tool list is the specific failure the template mechanism can produce, and it looks like working prose until you read it closely.
Given
- —
When
loaded = { **d.load_descriptions(tier=1), **d.load_descriptions(tier=0), **d.load_descriptions(tier=2), # 2.0.0: the prompts }for name, text in loaded.items(): assert len(text) > 40, f"{name}: description is suspiciously short" assert "{" not in text and "}" not in text, f"{name}: unrendered placeholder" assert not text.startswith(" ") and not text.endswith(" "), f"{name}: stray edge space" assert " " not in text, f"{name}: double space — a description line ended with one"
Then
- —
tests/test_descriptions.py:96 · its file's page
What it checks (4)
assert len(text) > 40, f"{name}: description is suspiciously short"not attributedassert "{" not in text and "}" not in text, f"{name}: unrendered placeholder"not attributedassert not text.startswith(" ") and not text.endswith(" "), f"{name}: stray edge space"not attributedassert " " not in text, f"{name}: double space — a description line ended with one"not 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
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured
- REQ-DDB-WIKI-054 inferred