Skip to content

Commit

Permalink
Avoid the final write of every registry at the end of each test (#111053
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bdraco authored Feb 21, 2024
1 parent 2614d6f commit 4bddf32
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bddf32

Please sign in to comment.