mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
test: add unit tests for services-part-1 (#33050)
This commit is contained in:
1 parent
31506b27ab
commit
b53675a16c
13 files changed
+8360
-95
No files matched your search
@@ -704,7 +704,7 @@ class MCPToolManageService:
|
||||
raise ValueError(f"MCP tool {server_url} already exists")
|
||||
if "unique_mcp_provider_server_identifier" in error_msg:
|
||||
raise ValueError(f"MCP tool {server_identifier} already exists")
|
||||
raise
|
||||
raise error
|
||||
|
||||
def _is_valid_url(self, url: str) -> bool:
|
||||
"""Validate URL format."""
|
||||
|
||||
Reference in new issue
Block a user