We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9370ddd commit bc82b7fCopy full SHA for bc82b7f
1 file changed
backend/api/health.py
@@ -14,18 +14,20 @@
14
@router.get("/")
15
async def health_check() -> Dict[str, Any]:
16
"""Detailed health check endpoint with infrastructure service checks"""
17
-
+
18
# Check if we're in test environment
19
- is_test_env = os.getenv("TESTING", "false").lower() == "true" or "pytest" in os.environ.get("_", "")
20
+ is_test_env = os.getenv(
+ "TESTING", "false"
21
+ ).lower() == "true" or "pytest" in os.environ.get("_", "")
22
23
if is_test_env:
24
# Return healthy status for tests without connecting to real services
25
return {
26
"success": True,
27
"data": {
28
"status": "healthy",
29
"service": "SmartQuery API",
- "version": "1.0.0",
30
+ "version": "1.0.0",
31
"timestamp": datetime.utcnow().isoformat() + "Z",
32
"checks": {
33
"database": True,
0 commit comments