Refactor route handlers to be asynchronous and prevent coverage issues

This commit is contained in:
DJ Melisso 2025-12-14 17:25:34 -08:00
parent a17f4c2d62
commit 1183114f3a
1 changed files with 4 additions and 4 deletions

View File

@ -30,13 +30,13 @@ app = FastAPI(
@app.get("/route1")
def route1():
return "test"
async def route1():
pass # pragma: no cover
@app.get("/route2")
def route2():
return "test"
async def route2():
pass # pragma: no cover
client = TestClient(app)