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
4aa514f066
commit
5f4f7721d9
@ -12,7 +12,7 @@ from the_app.models.base import Base
|
|||||||
|
|
||||||
global_settings = config.get_settings()
|
global_settings = config.get_settings()
|
||||||
url = global_settings.asyncpg_test_url
|
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)
|
async_session = sessionmaker(engine, expire_on_commit=False, class_=AsyncSession)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user