From 549b80b3d4581eb2b0ea67d2c392ce7452856946 Mon Sep 17 00:00:00 2001 From: "backend.im" Date: Sat, 15 Mar 2025 01:50:29 +0000 Subject: [PATCH] Update tests/test_health.py --- tests/test_health.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_health.py b/tests/test_health.py index 5b89cd8..2e92e97 100644 --- a/tests/test_health.py +++ b/tests/test_health.py @@ -1,6 +1,9 @@ -app = FastAPI() +from fastapi import APIRouter, Depends, HTTPException +from core.auth import get_current_user_dummy +from core.database import fake_users_db +router = APIRouter() -@app.get("/health") +@router.get("/health") async def read_health(): return {"status": "ok"} \ No newline at end of file