test_claude_config_dir_relocates_both_paths

Tests › tests/test_init.py

passed Passed in the packaged run.

What this test is for

Why it exists

A declared CLAUDE_CONFIG_DIR relocates both the file and the state dir.

Verifies REQ-DDB-CLI-002

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

Where the product reaches it

  • main → init_main → diagnose → _check_client_config → global_config_evidence → claude_state_dir (flow)
  • main → init_main → diagnose → _check_client_config → global_config_available (flow)
  • main → init_main → _register → config_path → global_config_path (flow)

Call flow

test_claude_config_dir_relocates_both_paths→global_config_path→claude_state_dir→global_config_available

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_claude_config_dir_relocates_both_pathsclaude_state_dirREQ-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.