test_a_submodules_manifest_is_excluded

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

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

  1. root = repo_with_submodules(tmp_path, "deps/generator")
  2. _repo(tmp_path, {"widgetbus.toml": MANIFEST}, DEFINES)
5 more
  1. vendored = tmp_path / "deps" / "generator" / "examples"
  2. vendored.mkdir(parents=True, exist_ok=True)
  3. (vendored / "demo.toml").write_text(EXAMPLE_MANIFEST, encoding="utf-8")
  4. (vendored / "its_list.yaml").write_text("---\n- DEMO_SAMPLE_WIDGET\n", encoding="utf-8")
  5. found = discover(root)
→

When

  1. —
→

Then

  1. ✓ {k.define_name for k in found.keys} equals set(DEFINES)
  2. ✓ {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

thread startthread startthread startthread startclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filestry (line 1003)tryopt (line 845)optloop (line 1239)loopopt (line 847)optloop (line 746)loop_first_build_worker3. whole_repo_scope → _gitignored_paths3_gitignored_paths4. _gitignored_paths → git_argv4git_argv5. git_argv → _no_ext_diff5_no_ext_diff▶ test enters6. git_argv → list6list7. list → link7link8. _gitignored_paths → git_env8git_env9. whole_repo_scope → list9list10. whole_repo_scope → nested_repo_roots10nested_repo_roots11. nested_repo_roots → _nested_repos_under11_nested_repos_under▶ test enters12–14. _nested_repos_under → _warn_unwalkable12_warn_unwalkable +2 more15. nested_repo_roots → _nested_repos_under15_nested_repos_under16. whole_repo_scope → _gitignored_paths16_gitignored_paths

… 126 later steps

4 more

tests/test_datamodel.py:422 · its file's page

What it checks (2)

  1. assert {k.define_name for k in found.keys} == set(DEFINES) not attributed
  2. assert "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→_repo

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 4 requirements

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