MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / test_with_editable_adds_flag

Function test_with_editable_adds_flag

tests/cli/test_claude.py:105–111  ·  view source on GitHub ↗

with_editable should add --with-editable after the --with flags.

(config_dir: Path, tmp_path: Path)

Source from the content-addressed store, hash-verified

103
104
105def test_with_editable_adds_flag(config_dir: Path, tmp_path: Path):
106 """with_editable should add --with-editable after the --with flags."""
107 editable = tmp_path / "project"
108 assert update_claude_config(file_spec="s.py:app", server_name="s", with_editable=editable)
109
110 args = _read_server(config_dir, "s")["args"]
111 assert args[4:6] == ["--with-editable", str(editable)]
112
113
114def test_env_vars_written(config_dir: Path):

Callers

nothing calls this directly

Calls 2

update_claude_configFunction · 0.90
_read_serverFunction · 0.85

Tested by

no test coverage detected