test_a_declared_manifest_that_cannot_be_read_is_refused

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

What this test is for

Why it exists

NEVER SILENTLY SKIPPED, which is what this issue is really about. The reporter stated `data_model` through `options`, watched the build log it as tier 1, and then watched the stage report `0 key(s) ... from 0 manifest(s) in dialect(s) none` with no line saying the declared path had been opened, parsed or rejected. A statement that is accepted and has no effect is worse than one that is refused: it reads as agreement.

Given

  1. repo = tmp_path / "repo"
  2. repo.mkdir()
2 more
  1. plain = repo / "pyproject.toml"
  2. plain.write_text("[tool.black]\nline-length = 100\n", encoding="utf-8")
→

When

  1. discover(repo, (), declared=plain)
→

Then

  1. ✓ raises DeclaredModelError

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) · 4 of 142 steps

… 8 earlier steps

thread startthread startthread startthread startclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesopt (line 845)optloop (line 1239)loopopt (line 847)optloop (line 746)loop_first_build_worker9. 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

2 more

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

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

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