Make CacheConfig() the Client cache default and None the off switch (#3164)

This commit is contained in:
Max 2026-07-25 17:50:53 +01:00 • committed by GitHub
commit 0cb920f126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,9 +102,9 @@ async def test_a_hintless_result_is_not_cached_by_default() -> None:
assert fetches == [None, None]
async def test_cache_false_makes_every_call_a_round_trip() -> None:
async def test_cache_none_makes_every_call_a_round_trip() -> None:
server, fetches = _counting_tools_server()
async with Client(server, cache=False) as client:
async with Client(server, cache=None) as client:
await client.list_tools()
await client.list_tools()
assert fetches == [None, None]