Skip to content

Commit bc82b7f

Browse files
committed
fixes
1 parent 9370ddd commit bc82b7f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

backend/api/health.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@
1414
@router.get("/")
1515
async def health_check() -> Dict[str, Any]:
1616
"""Detailed health check endpoint with infrastructure service checks"""
17-
17+
1818
# Check if we're in test environment
19-
is_test_env = os.getenv("TESTING", "false").lower() == "true" or "pytest" in os.environ.get("_", "")
20-
19+
is_test_env = os.getenv(
20+
"TESTING", "false"
21+
).lower() == "true" or "pytest" in os.environ.get("_", "")
22+
2123
if is_test_env:
2224
# Return healthy status for tests without connecting to real services
2325
return {
2426
"success": True,
2527
"data": {
2628
"status": "healthy",
2729
"service": "SmartQuery API",
28-
"version": "1.0.0",
30+
"version": "1.0.0",
2931
"timestamp": datetime.utcnow().isoformat() + "Z",
3032
"checks": {
3133
"database": True,

0 commit comments

Comments
 (0)