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

Function test_parse_file_exit_on_dir

tests/cli/test_utils.py:43–48  ·  view source on GitHub ↗

Should system exit if a directory is passed

(tmp_path: Path)

Source from the content-addressed store, hash-verified

41
42
43def test_parse_file_exit_on_dir(tmp_path: Path):
44 """Should system exit if a directory is passed"""
45 dir_path = tmp_path / "dir"
46 dir_path.mkdir()
47 with pytest.raises(SystemExit):
48 _parse_file_path(str(dir_path))
49
50
51def test_build_uv_command_pins_the_running_mcp_version(monkeypatch: pytest.MonkeyPatch):

Callers

nothing calls this directly

Calls 1

_parse_file_pathFunction · 0.90

Tested by

no test coverage detected