11 lines
317 B
Python
11 lines
317 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)
|
|
TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
|
client = TestClient(app)
|