Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
@@ -0,0 +1,13 @@
import asyncio
from mcp_servers import email_server
def test_search_exception_uses_mcp_error_transport_prefix(monkeypatch):
monkeypatch.setattr(email_server, "_read_accounts_from_db", lambda: [])
monkeypatch.setattr(email_server, "_search_emails", lambda *args, **kwargs: (_ for _ in ()).throw(ConnectionError("offline")))
result = asyncio.run(email_server.call_tool("search_emails", {"query": "fixture"}))
assert len(result) == 1
assert result[0].text == "Error: Search failed: offline"