Skip to content

Commit 792babb

Browse files
committed
smaller fix
1 parent f8afa81 commit 792babb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/test_middleware_preprocessing.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ class TestMiddlewareParameterPreprocessing:
4747
def test_middleware_converts_stringified_json_params(self):
4848
"""Test that middleware converts JSON strings to dicts."""
4949
import asyncio
50-
import os
51-
52-
from fastmcp.server.middleware import MiddlewareContext
5350

5451
from gg_api_core.mcp_server import GitGuardianPATEnvMCP
5552

@@ -77,8 +74,6 @@ def test_middleware_preserves_dict_params(self):
7774
"""Test that middleware doesn't modify already-valid dict params."""
7875
import asyncio
7976

80-
from fastmcp.server.middleware import MiddlewareContext
81-
8277
from gg_api_core.mcp_server import GitGuardianPATEnvMCP
8378

8479
mcp = GitGuardianPATEnvMCP("test", personal_access_token="test_token")
@@ -146,5 +141,3 @@ async def mock_call_next(ctx):
146141
# Run the middleware
147142
result = asyncio.run(mcp._parameter_preprocessing_middleware(context, mock_call_next))
148143
assert result == "success"
149-
150-

0 commit comments

Comments
 (0)