Bahn: aisupport, Analyse-O2C-C2S, awesome-bahn-mcp-servers, beam-mcp,
Confluence_Bot, db-planet-mcp-server, O2C-Harness, project-audit,
Projekt-KIQ-HP, teamlandkarte-mcp
Dhive: Jury-Voting
Privat: CV, NoteGraph (NOTE: NoteGraph needs complete redo after consolidation)
Shared: AI-Orchestrator, OrgMyLife, power_skills_and_more
Shared/references: symphony (read-only)
Bahn repos remain available as independent remotes - this monorepo
pulls them in via subtree, the originals are untouched.
16 lines
519 B
Python
16 lines
519 B
Python
from __future__ import annotations
|
|
|
|
from teamlandkarte_mcp.cache.search_cache import SearchCache
|
|
|
|
|
|
def test_invalid_search_id_returns_none() -> None:
|
|
cache = SearchCache(ttl_minutes=60, max_size=10)
|
|
assert cache.get("does-not-exist") is None
|
|
|
|
|
|
def test_non_uuid_search_id_rejected_in_tool_message() -> None:
|
|
# Tool-level tests live elsewhere; here we assert the expected user-facing
|
|
# wording for non-UUID search_id inputs.
|
|
msg = "Invalid search_id format (expected UUID)."
|
|
assert "UUID" in msg
|