mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Avoid the final write of every registry at the end of each test (#111053)
This commit is contained in:
parent
2614d6fece
commit
4bddf32cc4
@ -201,7 +201,17 @@ class StoreWithoutWriteLoad(storage.Store[_T]):
|
|||||||
"""Fake store that does not write or load. Used for testing."""
|
"""Fake store that does not write or load. Used for testing."""
|
||||||
|
|
||||||
async def async_save(self, *args: Any, **kwargs: Any) -> None:
|
async def async_save(self, *args: Any, **kwargs: Any) -> None:
|
||||||
"""Save the data."""
|
"""Save the data.
|
||||||
|
|
||||||
|
This function is mocked out in tests.
|
||||||
|
"""
|
||||||
|
|
||||||
|
@callback
|
||||||
|
def async_save_delay(self, *args: Any, **kwargs: Any) -> None:
|
||||||
|
"""Save data with an optional delay.
|
||||||
|
|
||||||
|
This function is mocked out in tests.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user