mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fix flaky lru_cache test (#101252)
This commit is contained in:
@@ -9,6 +9,7 @@ ent = "test.test"
|
||||
def test_override_single_value() -> None:
|
||||
"""Test values with exact match."""
|
||||
store = EV({ent: {"key": "value"}})
|
||||
store.get.cache_clear()
|
||||
assert store.get(ent) == {"key": "value"}
|
||||
assert store.get.cache_info().currsize == 1
|
||||
assert store.get.cache_info().misses == 1
|
||||
|
Reference in New Issue
Block a user