Skip to content

Commit 5560a72

Browse files
committed
add addtl wipe in storage test fixture
1 parent e8a156a commit 5560a72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ def postgres_uri():
7777
def postgres_storage(postgres_uri: str):
7878
"""Reset storage state after each test case"""
7979
storage = PostgresObjectStore(postgres_uri)
80-
storage.wipe_db()
81-
return storage
80+
storage.wipe_db() # Ensure clean state before test
81+
yield storage
82+
storage.wipe_db() # Clean up after test
8283

8384

8485
@pytest.fixture

0 commit comments

Comments
 (0)