test_the_flag_outranks_the_environment

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

What this test is for

Why it exists

An operator who typed `--repo` outranks the client's session directory. Without this the override would be unusable in exactly the case it exists for: a Claude Code session that also exports `CLAUDE_PROJECT_DIR`.

Verifies REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009

Given

  1. flagged, envd = tmp_path / "flagged", tmp_path / "envd"
  2. flagged.mkdir()
2 more
  1. envd.mkdir()
  2. monkeypatch.setenv(st.PROJECT_DIR_ENV, str(envd))
→

When

  1. st.startup_target(str(flagged))
→

Then

  1. ✓ st.startup_target(str(flagged)) equals (str(flagged), st.TARGET_SOURCE_FLAG)

tests/test_mcp_server.py:2552 · its file's page

What it checks (1)

  1. assert st.startup_target(str(flagged)) == (str(flagged), st.TARGET_SOURCE_FLAG) observes startup_target

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

test_the_flag_outranks_the_environment→startup_target

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_the_flag_outranks_the_environment · 1 checksstartup_targetREQ-DDB-MCP-001 · measured

Requirements it verifies (4)

requirementlinked byimplementers exercised
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 1 requirement

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