Make sure we test real app

This commit is contained in:
Colin Goutte 2021-09-22 10:35:32 +02:00
parent 0256b503aa
commit c04baf05aa
1 changed files with 2 additions and 10 deletions

View File

@ -1,18 +1,10 @@
from fastapi import FastAPI
from fastapi.testclient import TestClient
from papi import __version__
app = FastAPI()
@app.get("/")
async def read_main():
return {"msg": "Hello World"}
from papi.main import app
from papi import __version__
client = TestClient(app)