Remove sqlite database connection arguments
This commit is contained in:
parent
129f0f3e71
commit
639922fdaf
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue