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

Method test_python_file

tests/cli/test_generate_cli.py:393–394  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 assert _derive_server_name("cursor:weather") == "weather"
392
393 def test_python_file(self):
394 assert _derive_server_name("server.py") == "server"
395
396 def test_url(self):
397 assert _derive_server_name("http://localhost:8000/mcp") == "localhost"

Callers

nothing calls this directly

Calls 1

_derive_server_nameFunction · 0.90

Tested by

no test coverage detected