Spaces:
Sleeping
Sleeping
MrEGAMERZ commited on
Commit ·
f7da368
1
Parent(s): 36b4293
fix(compliance): align custom validate.py strict mock API checks
Browse files- validate.py +1 -1
validate.py
CHANGED
|
@@ -51,7 +51,7 @@ def run_validation(base_url: str) -> None:
|
|
| 51 |
try:
|
| 52 |
h = get(base, "/health")
|
| 53 |
check("GET /health returns 200", True, str(h))
|
| 54 |
-
check("Status is '
|
| 55 |
except Exception as e:
|
| 56 |
check("GET /health", False, str(e))
|
| 57 |
print("\n ERROR: Cannot reach server. Aborting.\n")
|
|
|
|
| 51 |
try:
|
| 52 |
h = get(base, "/health")
|
| 53 |
check("GET /health returns 200", True, str(h))
|
| 54 |
+
check("Status is 'healthy'", h.get("status") == "healthy")
|
| 55 |
except Exception as e:
|
| 56 |
check("GET /health", False, str(e))
|
| 57 |
print("\n ERROR: Cannot reach server. Aborting.\n")
|