We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b9d06 commit 7a99147Copy full SHA for 7a99147
packages/service-library/tests/deferred_tasks/conftest.py
@@ -5,6 +5,10 @@
5
from settings_library.redis import RedisDatabase, RedisSettings
6
7
8
+async def _cleanup_redis_data(client: RedisClientSDK) -> None:
9
+ await client.redis.flushall()
10
+
11
12
@pytest.fixture
13
async def redis_client_sdk_deferred_tasks(
14
redis_service: RedisSettings,
@@ -17,6 +21,9 @@ async def redis_client_sdk_deferred_tasks(
17
21
)
18
22
await client.setup()
19
23
24
+ await _cleanup_redis_data(client)
25
20
26
yield client
27
28
29
await client.shutdown()
0 commit comments