diff --git a/papi/main.py b/papi/main.py index dbe9093..23920b7 100644 --- a/papi/main.py +++ b/papi/main.py @@ -7,7 +7,7 @@ app = FastAPI() @app.get("/") def read_root(): - return {"Hello": "World"} + return {"msg": "Hello World"} @app.get("/items/{item_id}") diff --git a/tests/test_papi.py b/tests/test_papi.py index 5e2f18e..8f767b7 100644 --- a/tests/test_papi.py +++ b/tests/test_papi.py @@ -11,6 +11,8 @@ async def read_main(): return {"msg": "Hello World"} +from papi.main import app + client = TestClient(app)