We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3950be5 commit 5ef1348Copy full SHA for 5ef1348
pyproject.toml
@@ -62,6 +62,7 @@ postgres-mcp = "postgres_mcp:main"
62
63
[tool.pytest.ini_options]
64
pythonpath = ["./src"]
65
+asyncio_mode = "auto"
66
asyncio_default_fixture_loop_scope = "function"
67
68
[dependency-groups]
security/test_mcp_security_fix.py
@@ -15,12 +15,14 @@
15
if sys.platform == "win32":
16
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
17
18
+import pytest
19
from mcp import types
20
21
import postgres_mcp.server as server_module
22
from postgres_mcp.server import execute_sql
23
24
25
+@pytest.mark.asyncio
26
async def test_mcp_security_fix():
27
"""Test that the MCP server execute_sql function blocks SQL injection"""
28
0 commit comments