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