mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
update conftest.py
This commit is contained in:
parent
6b7b1e2b3d
commit
5b1208fd23
@ -12,7 +12,7 @@ from the_app.models.base import Base
|
||||
|
||||
global_settings = config.get_settings()
|
||||
url = global_settings.asyncpg_test_url
|
||||
engine = create_async_engine(url, poolclass=NullPool)
|
||||
engine = create_async_engine(url, poolclass=NullPool, future=True)
|
||||
|
||||
async_session = sessionmaker(engine, expire_on_commit=False, class_=AsyncSession)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user