summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-08-29 11:55:57 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-08-29 11:55:57 +0300
commitba68a3f21162d9dee6fed41a22bf1a1f04dd8701 (patch)
tree542bfb22307461457e1d2fa774c8cfe919efacd7 /tests/conftest.py
parentcb9f427fe5659aebf54db9afdd4406ce56176be1 (diff)
downloadapscheduler-ba68a3f21162d9dee6fed41a22bf1a1f04dd8701.tar.gz
Synced the create_engine imports
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 6f135d9..970ea07 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -72,9 +72,9 @@ async def setup_postgresql_store() -> AsyncGenerator[AsyncDataStore, None]:
@contextmanager
def setup_sqlalchemy_store() -> Generator[DataStore, None, None]:
from apscheduler.datastores.sync.sqlalchemy import SQLAlchemyDataStore
- from sqlalchemy import create_engine
+ from sqlalchemy.future import create_engine
- engine = create_engine('postgresql+psycopg2://postgres:secret@localhost/testdb', future=True)
+ engine = create_engine('postgresql+psycopg2://postgres:secret@localhost/testdb')
try:
yield SQLAlchemyDataStore(engine, start_from_scratch=True)
finally: