Avoid the final write of every registry at the end of each test (#111053)

This commit is contained in:
J. Nick Koston 2024-02-21 06:01:19 -06:00 committed by GitHub
parent 2614d6fece
commit 4bddf32cc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,7 +201,17 @@ class StoreWithoutWriteLoad(storage.Store[_T]):
"""Fake store that does not write or load. Used for testing."""
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