Use real app
This commit is contained in:
parent
ab2c3d9724
commit
0256b503aa
|
@ -7,7 +7,7 @@ app = FastAPI()
|
|||
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
return {"Hello": "World"}
|
||||
return {"msg": "Hello World"}
|
||||
|
||||
|
||||
@app.get("/items/{item_id}")
|
||||
|
|
|
@ -11,6 +11,8 @@ async def read_main():
|
|||
return {"msg": "Hello World"}
|
||||
|
||||
|
||||
from papi.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue