test_config_path_selects_by_scope¶
Tests › tests/test_init.py
What this test is for
Given
- —
When
config_path(INIT_SCOPE_REPO, repo)config_path(INIT_SCOPE_GLOBAL, repo)
Then
- ✓ config_path(INIT_SCOPE_REPO, repo) equals repo / REPO_CONFIG_NAME
- ✓ config_path(INIT_SCOPE_GLOBAL, repo) equals global_home / ".claude.json"
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.
clew — `main` (clew/cli.py) · 1 of 400 steps
… 188 earlier steps
… 207 later steps
tests/test_init.py:883 · its file's page
What it checks (2)
assert config_path(INIT_SCOPE_REPO, repo) == repo / REPO_CONFIG_NAMEobservesconfig_pathassert config_path(INIT_SCOPE_GLOBAL, repo) == global_home / ".claude.json"observesconfig_path
Where the product reaches it
main→init_main→_register→config_path(flow)
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CLI-002 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured