From c04baf05aabae1ff80012d10478803eb5d567f73 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Wed, 22 Sep 2021 10:35:32 +0200 Subject: [PATCH] Make sure we test real app --- tests/test_papi.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/test_papi.py b/tests/test_papi.py index 8f767b7..22a79eb 100644 --- a/tests/test_papi.py +++ b/tests/test_papi.py @@ -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)