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

Method test_parse_path_with_object

tests/cli/test_run.py:65–72  ·  view source on GitHub ↗

Test parsing file path with object specification.

(self, tmp_path)

Source from the content-addressed store, hash-verified

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."""
67 test_file = tmp_path / "server.py"
68 test_file.write_text("# test server")
69
70 source = FileSystemSource(path=f"{test_file}:app")
71 assert Path(source.path).resolve() == test_file.resolve()
72 assert source.entrypoint == "app"
73
74 def test_parse_complex_object(self, tmp_path):
75 """Test parsing file path with complex object specification."""

Callers

nothing calls this directly

Calls 2

FileSystemSourceClass · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected