diff --git a/tests/migrations/conftest.py b/tests/migrations/conftest.py index e965683..9f0eb0f 100644 --- a/tests/migrations/conftest.py +++ b/tests/migrations/conftest.py @@ -1,7 +1,7 @@ import pytest from pytest_alembic.config import Config -from sqlalchemy import create_engine +from sqlalchemy.ext.asyncio import create_async_engine @pytest.fixture @@ -13,4 +13,4 @@ def alembic_config(): @pytest.fixture def alembic_engine(): """Override this fixture to provide pytest-alembic powered tests with a database handle.""" - return create_engine("sqlite+aiosqlite://") + return create_async_engine("sqlite+aiosqlite://")