MCPcopy Create free account
hub / github.com/PrefectHQ/fastmcp / test_parse_simple_path

Method test_parse_simple_path

tests/cli/test_run.py:56–63  ·  view source on GitHub ↗

Test parsing simple file path without object.

(self, tmp_path)

Source from the content-addressed store, hash-verified

54 """Test FileSystemSource path parsing functionality."""
55
56 def test_parse_simple_path(self, tmp_path):
57 """Test parsing simple file path without object."""
58 test_file = tmp_path / "server.py"
59 test_file.write_text("# test server")
60
61 source = FileSystemSource(path=str(test_file))
62 assert Path(source.path).resolve() == test_file.resolve()
63 assert source.entrypoint is None
64
65 def test_parse_path_with_object(self, tmp_path):
66 """Test parsing file path with object specification."""

Callers

nothing calls this directly

Calls 2

FileSystemSourceClass · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected