test_a_submodules_manifest_is_excluded¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
The generator itself is a dependency, and its examples come with it. Excluding them by the TREE that owns them rather than by a directory NAME is the rule this repository already holds: `vendor/` and `examples/` are conventions, a git tree is a fact.
Given
root = repo_with_submodules(tmp_path, "deps/generator")_repo(tmp_path, {"widgetbus.toml": MANIFEST}, DEFINES)
5 more
vendored = tmp_path / "deps" / "generator" / "examples"vendored.mkdir(parents=True, exist_ok=True)(vendored / "demo.toml").write_text(EXAMPLE_MANIFEST, encoding="utf-8")(vendored / "its_list.yaml").write_text("---\n- DEMO_SAMPLE_WIDGET\n", encoding="utf-8")found = discover(root)
When
- —
Then
- ✓ {k.define_name for k in found.keys} equals set(DEFINES)
- ✓ {k.define_name for k in found.keys} does not contain "DEMO_SAMPLE_WIDGET"
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 `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 6 of 142 steps
… 2 earlier steps
… 126 later steps
4 more
- Build, refresh and check the index · 6 of 153 steps
- clew — `main` (clew/cli.py) · 6 of 400 steps
- Build this wiki from the index · 2 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
tests/test_datamodel.py:422 · its file's page
What it checks (2)
assert {k.define_name for k in found.keys} == set(DEFINES)not attributedassert "DEMO_SAMPLE_WIDGET" not in {k.define_name for k in found.keys}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_a_submodules_manifest_is_excluded→repo_with_submodules→_repoWhat 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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-INDEX-005 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-SCHEMA-013 measured