Spaces:
Build error
Build error
Commit ·
5b1428f
1
Parent(s): e9ac5f9
Upload folder using huggingface_hub
Browse files- render.yaml +2 -0
- tests/test_history.py +2 -6
render.yaml
CHANGED
|
@@ -11,6 +11,8 @@ services:
|
|
| 11 |
property: connectionString
|
| 12 |
- key: API_KEY
|
| 13 |
sync: false
|
|
|
|
|
|
|
| 14 |
- key: ENVIRONMENT
|
| 15 |
value: production
|
| 16 |
databases:
|
|
|
|
| 11 |
property: connectionString
|
| 12 |
- key: API_KEY
|
| 13 |
sync: false
|
| 14 |
+
- key: ARF_KEY_PEPPER
|
| 15 |
+
sync: false
|
| 16 |
- key: ENVIRONMENT
|
| 17 |
value: production
|
| 18 |
databases:
|
tests/test_history.py
CHANGED
|
@@ -8,9 +8,5 @@ def test_history():
|
|
| 8 |
response = client.get("/api/v1/history")
|
| 9 |
assert response.status_code == 200
|
| 10 |
data = response.json()
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
assert isinstance(data, list)
|
| 14 |
-
if data: # if not empty, verify the structure of the first item
|
| 15 |
-
assert "risk" in data[0]
|
| 16 |
-
assert "time" in data[0]
|
|
|
|
| 8 |
response = client.get("/api/v1/history")
|
| 9 |
assert response.status_code == 200
|
| 10 |
data = response.json()
|
| 11 |
+
assert "incidents" in data
|
| 12 |
+
assert isinstance(data["incidents"], list)
|
|
|
|
|
|
|
|
|
|
|
|