mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-20 04:24:17 +02:00
Remove trailing slash in unit tests (#1535)
This commit is contained in:
parent
2662deb067
commit
ce0a044835
5 changed files with 6 additions and 6 deletions
|
|
@ -42,7 +42,7 @@ def run_server(host: str, port: int, **kwargs) -> None:
|
|||
@pytest.fixture(scope="module")
|
||||
def streamable_http_server() -> Generator[str, None, None]:
|
||||
with run_server_in_process(run_server, transport="http") as url:
|
||||
yield f"{url}/mcp/"
|
||||
yield f"{url}/mcp"
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ def run_server(host: str, port: int, **kwargs) -> None:
|
|||
@pytest.fixture(autouse=True, scope="module")
|
||||
def sse_server() -> Generator[str, None, None]:
|
||||
with run_server_in_process(run_server, transport="sse") as url:
|
||||
yield f"{url}/sse/"
|
||||
yield f"{url}/sse"
|
||||
|
||||
|
||||
async def test_ping(sse_server: str):
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ def mcp_server_url(rsa_key_pair: RSAKeyPair) -> Generator[str]:
|
|||
public_key=rsa_key_pair.public_key,
|
||||
run_kwargs=dict(transport="http"),
|
||||
) as url:
|
||||
yield f"{url}/mcp/"
|
||||
yield f"{url}/mcp"
|
||||
|
||||
|
||||
class TestRSAKeyPair:
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ def run_mcp_server(host: str, port: int) -> None:
|
|||
@pytest.fixture(scope="module")
|
||||
def mcp_server_url() -> Generator[str]:
|
||||
with run_server_in_process(run_mcp_server) as url:
|
||||
yield f"{url}/mcp/"
|
||||
yield f"{url}/mcp"
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
|
|
|||
|
|
@ -45,13 +45,13 @@ def run_server(host: str, port: int, **kwargs) -> None:
|
|||
@pytest.fixture(autouse=True, scope="module")
|
||||
def shttp_server() -> Generator[str, None, None]:
|
||||
with run_server_in_process(run_server, transport="http") as url:
|
||||
yield f"{url}/mcp/"
|
||||
yield f"{url}/mcp"
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, scope="module")
|
||||
def sse_server() -> Generator[str, None, None]:
|
||||
with run_server_in_process(run_server, transport="sse") as url:
|
||||
yield f"{url}/sse/"
|
||||
yield f"{url}/sse"
|
||||
|
||||
|
||||
async def test_http_headers_resource_shttp(shttp_server: str):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue