mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-15 04:17:56 +00:00
fix: tests
This commit is contained in:
1 parent
7e88d09e5d
commit
72b3d94453
1 file changed
+7
@@ -14,6 +14,13 @@ def app():
|
||||
return app
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _bypass_url_validation():
|
||||
"""Bypass SSRF URL validation so tests using localhost URLs can proceed."""
|
||||
with patch("application.api.user.tools.mcp.validate_url"):
|
||||
yield
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Helper: _sanitize_mcp_transport
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user