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

Function test_parse_file_path_missing

tests/cli/test_utils.py:37–40  ·  view source on GitHub ↗

Should system exit if a file is missing.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

35
36
37def test_parse_file_path_missing(tmp_path: Path):
38 """Should system exit if a file is missing."""
39 with pytest.raises(SystemExit):
40 _parse_file_path(str(tmp_path / "missing.py"))
41
42
43def test_parse_file_exit_on_dir(tmp_path: Path):

Callers

nothing calls this directly

Calls 1

_parse_file_pathFunction · 0.90

Tested by

no test coverage detected