petter2025 commited on
Commit
5b1428f
·
1 Parent(s): e9ac5f9

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. render.yaml +2 -0
  2. 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
- # The endpoint returns a list of risk points, not an object with an
12
- # "incidents" key
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)