11 lines
360 B
Python
11 lines
360 B
Python
from fastapi.testclient import TestClient
|
|
from sqlalchemy import create_engine
|
|
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})
|
|
TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
|
client = TestClient(app)
|