Should write a uv run command that invokes mcp run on the resolved file spec.
(config_dir: Path)
| 69 | |
| 70 | |
| 71 | def test_generates_uv_run_command(config_dir: Path): |
| 72 | """Should write a uv run command that invokes mcp run on the resolved file spec.""" |
| 73 | assert update_claude_config(file_spec="server.py:app", server_name="my_server") |
| 74 | |
| 75 | resolved = Path("server.py").resolve() |
| 76 | assert _read_server(config_dir, "my_server") == { |
| 77 | "command": "/fake/bin/uv", |
| 78 | "args": ["run", "--frozen", "--with", "mcp[cli]==1.2.3", "mcp", "run", f"{resolved}:app"], |
| 79 | } |
| 80 | |
| 81 | |
| 82 | def test_file_spec_without_object_suffix(config_dir: Path): |
nothing calls this directly
no test coverage detected