test_config_path_selects_by_scope

Tests › tests/test_init.py

passed Passed in the packaged run.

What this test is for

Why it exists

config_path selects the file by scope.

Verifies REQ-DDB-CLI-002

Given

  1. —
→

When

  1. config_path(INIT_SCOPE_REPO, repo)
  2. config_path(INIT_SCOPE_GLOBAL, repo)
→

Then

  1. ✓ config_path(INIT_SCOPE_REPO, repo) equals repo / REPO_CONFIG_NAME
  2. ✓ 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

command-line usercommand-line usercommand-line usercommand-line userclew/init_command.pyclew/init_command.pyclew/init_command.pyclew/init_command.pyother filesother filesother filesother filestry (line 683)trymain189. _register → server_entry189server_entry190. _register → config_path190config_path191. config_path → global_config_path191global_config_path▶ test enters192. _register → plan_merge192plan_merge193. plan_merge → load_document193load_document

… 207 later steps

tests/test_init.py:883 · its file's page

What it checks (2)

  1. assert config_path(INIT_SCOPE_REPO, repo) == repo / REPO_CONFIG_NAME observes config_path
  2. assert config_path(INIT_SCOPE_GLOBAL, repo) == global_home / ".claude.json" observes config_path

Where the product reaches it

  • main → init_main → _register → config_path (flow)

Call flow

test_config_path_selects_by_scope→config_path

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.

test_config_path_selects_by_scope · 2 checksconfig_pathREQ-DDB-MCP-001 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CLI-002catalogunknown
Also reaches 1 requirement

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