Use real app

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

View File

@ -7,7 +7,7 @@ app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
return {"msg": "Hello World"}
@app.get("/items/{item_id}")

View File

@ -11,6 +11,8 @@ async def read_main():
return {"msg": "Hello World"}
from papi.main import app
client = TestClient(app)