test_provision_refuses_a_dirty_clew_tree¶
Tests › tests/test_tool_tree_refusal.py
What this test is for
Why it exists
BEFORE THE FETCH, because the fetch and the index build are the expensive steps and a dirty tree makes both worthless.
Given
fetched: list[Path] = []monkeypatch.setattr(provision, "fetch_pinned", lambda _r, repo: fetched.append(repo))monkeypatch.setattr(runner, "tool_identity", lambda: {"clew_commit": _SHA, "clew_dirty": True})
When
provision.provision(load(_MBEDTLS), tmp_path / "mbedtls")
Then
- ✓ raises provision.ProvisionError
- ✓ fetched is false
tests/test_tool_tree_refusal.py:104 · its file's page
What it checks (1)
assert not fetched, "the target was fetched for a clew tree that was going to be refused"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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-012 inferred