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)