test_shipped_descriptions_are_rendered_and_substantial

Tests › tests/test_descriptions.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. loaded = { **d.load_descriptions(tier=1), **d.load_descriptions(tier=0), **d.load_descriptions(tier=2), # 2.0.0: the prompts }
  2. 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

  1. —

tests/test_descriptions.py:96 · its file's page

What it checks (4)

  1. assert len(text) > 40, f"{name}: description is suspiciously short" not attributed
  2. assert "{" not in text and "}" not in text, f"{name}: unrendered placeholder" not attributed
  3. assert not text.startswith(" ") and not text.endswith(" "), f"{name}: stray edge space" not attributed
  4. assert " " 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

test_shipped_descriptions_are_rendered_and_substantial→load_descriptions

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.

test_shipped_descriptions_are_rendered_and_substantial · 4 checksload_descriptionsREQ-DDB-MCP-001 · measuredload_descriptions_entry_joinedallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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