Skip to content

Commit

Permalink
🔨 update to async version
Browse files Browse the repository at this point in the history
  • Loading branch information
agn-7 committed Dec 1, 2023
1 parent 2bd4e2b commit 8ece2d9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import pytest

from ifsguid import models
from .client import override_get_db, engine


@pytest.fixture
def db():
try:
yield from override_get_db()
finally:
models.Base.metadata.drop_all(bind=engine)
async def db():
async for session in override_get_db():
yield session

0 comments on commit 8ece2d9

Please sign in to comment.