Diane.Aurélie commited on
Commit
367e6f6
·
2 Parent(s): 39bb8c6 9cfb920

Merge pull request #14 from Diaure/develop

Browse files
Files changed (2) hide show
  1. .github/workflows/ci.yml +1 -0
  2. tests/test_api.py +2 -2
.github/workflows/ci.yml CHANGED
@@ -23,6 +23,7 @@ jobs:
23
  - name: Install dependencies
24
  run: |
25
  pip install .
 
26
  pip install pytest
27
 
28
  - name: Run tests
 
23
  - name: Install dependencies
24
  run: |
25
  pip install .
26
+ pip install -r requirements.txt
27
  pip install pytest
28
 
29
  - name: Run tests
tests/test_api.py CHANGED
@@ -40,5 +40,5 @@ def test_predict_endpoint():
40
  response = client.post("/predict", json = emp_caract)
41
 
42
  assert response.status_code == 200
43
- assert "prediction" in response.json()
44
- assert "probabilite_depart" in response.json()
 
40
  response = client.post("/predict", json = emp_caract)
41
 
42
  assert response.status_code == 200
43
+ assert "Prediction" in response.json()
44
+ assert "Probabilite_depart" in response.json()