MCPcopy Create free account
hub / github.com/BerriAI/litellm / _assert_copilot_cache_empty

Function _assert_copilot_cache_empty

tests/unit/caching/test_caching_handler.py:154–161  ·  view source on GitHub ↗
(cache: Cache)

Source from the content-addressed store, hash-verified

152
153
154def _assert_copilot_cache_empty(cache: Cache) -> None:
155 cache_backend: Final = cache.cache
156 assert isinstance(cache_backend, InMemoryCache)
157 cache_contents: Final[Mapping[str, object]] = cast( # cast-ok: in-memory cache exposes an untyped mapping
158 Mapping[str, object],
159 cache_backend.cache_dict,
160 )
161 assert cache_contents == {}
162
163
164def _sync_copilot_cache_call(client: HTTPHandler, stream: bool) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected