From 639922fdaff7daf11b731336ffe5b953d46426ec Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 16 Feb 2021 14:20:00 +0100 Subject: [PATCH] Remove sqlite database connection arguments --- database/__init__.py | 2 +- tests/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/__init__.py b/database/__init__.py index e113f1c..d426850 100644 --- a/database/__init__.py +++ b/database/__init__.py @@ -4,7 +4,7 @@ from sqlalchemy.orm import sessionmaker from constants import TESTING_DB as DB -engine = create_engine(DB, connect_args={"check_same_thread": False}) +engine = create_engine(DB) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base() Base.metadata.create_all(bind=engine) diff --git a/tests/__init__.py b/tests/__init__.py index 08d99f4..9723dcf 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -5,6 +5,6 @@ from sqlalchemy.orm import sessionmaker from app import app from constants import TESTING_DB -engine = create_engine(TESTING_DB, connect_args={"check_same_thread": False}) +engine = create_engine(TESTING_DB) TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) client = TestClient(app)