Remove sqlite database connection arguments

This commit is contained in:
coolneng 2021-02-16 14:20:00 +01:00
parent 129f0f3e71
commit 639922fdaf
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)