Skip to content

Commit 3b0ef8d

Browse files
committed
fix ut
1 parent d7c5cde commit 3b0ef8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_url_handling.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99

1010
# Sync tests for the await ep.make() function
11-
def test_mcp_env_make_appends_trailing_slash():
11+
@pytest.mark.asyncio
12+
async def test_mcp_env_make_appends_trailing_slash():
1213
"""
1314
Verify that await ep.make() appends a trailing slash to the MCP server URL if it's missing.
1415
This prevents 307 redirects that can break HTTP clients.
@@ -24,7 +25,8 @@ def test_mcp_env_make_appends_trailing_slash():
2425
assert envs.sessions[0].base_url == corrected_url
2526

2627

27-
def test_mcp_env_make_keeps_existing_trailing_slash():
28+
@pytest.mark.asyncio
29+
async def test_mcp_env_make_keeps_existing_trailing_slash():
2830
"""
2931
Verify that await ep.make() does not add an extra slash if one is already present.
3032
"""

0 commit comments

Comments
 (0)