mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-20 13:52:24 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -90,6 +90,19 @@ def test_empty_header():
|
||||
assert es._decode_header("") == ""
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_legacy_account_listing_explains_default_email_tool_fallback(monkeypatch):
|
||||
monkeypatch.setattr(es, "_read_accounts_from_db", lambda: [])
|
||||
monkeypatch.setattr(es, "_fixture_email_enabled", lambda: False)
|
||||
monkeypatch.setattr(es, "_fixture_account_rows", lambda: [])
|
||||
|
||||
out = await es.call_tool("list_email_accounts", {})
|
||||
|
||||
assert "Default single-account mode is active" in out[0].text
|
||||
assert "omit the `account` field and continue" in out[0].text
|
||||
assert "search_emails" in out[0].text
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_mcp_email_accounts_are_filtered_by_hidden_owner(tmp_path, monkeypatch):
|
||||
db_path = tmp_path / "app.db"
|
||||
|
||||
Reference in New Issue
Block a user