Skip to content

Commit 88db2c4

Browse files
committed
REF: update imports in __init__.py and yield test_engine in conftest.py
1 parent a886d44 commit 88db2c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
from app.services.database.models.communities import Community
22
from app.services.database.models.libraries import Library
3+
from app.services.database.models.news import News
4+
from app.services.database.models.subscriptions import Subscription
5+
36

47
__all__ = ["Community", "Library","News", "Subscription"]

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ async def get_db_session_test() -> AsyncGenerator[AsyncSession, None]:
4343
async def setup_database():
4444
async with test_engine.begin() as conn:
4545
await conn.run_sync(SQLModel.metadata.create_all)
46+
yield test_engine
4647

4748

4849
@pytest_asyncio.fixture(scope="function")

0 commit comments

Comments
 (0)