|
from fastapi import FastAPI
|
|
from fastapi.testclient import TestClient
|
|
from pytest import fixture
|
|
|
|
from app import create_app
|
|
|
|
|
|
@fixture
|
|
def app() -> FastAPI:
|
|
app = create_app()
|
|
return app
|
|
|
|
|
|
@fixture
|
|
def client(app: FastAPI) -> TestClient:
|
|
return TestClient(app)
|