We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7c5cde commit 3b0ef8dCopy full SHA for 3b0ef8d
1 file changed
tests/test_url_handling.py
@@ -8,7 +8,8 @@
8
9
10
# Sync tests for the await ep.make() function
11
-def test_mcp_env_make_appends_trailing_slash():
+@pytest.mark.asyncio
12
+async def test_mcp_env_make_appends_trailing_slash():
13
"""
14
Verify that await ep.make() appends a trailing slash to the MCP server URL if it's missing.
15
This prevents 307 redirects that can break HTTP clients.
@@ -24,7 +25,8 @@ def test_mcp_env_make_appends_trailing_slash():
24
25
assert envs.sessions[0].base_url == corrected_url
26
27
-def test_mcp_env_make_keeps_existing_trailing_slash():
28
29
+async def test_mcp_env_make_keeps_existing_trailing_slash():
30
31
Verify that await ep.make() does not add an extra slash if one is already present.
32
0 commit comments