Spaces:
Runtime error
Runtime error
Merge pull request #14 from Diaure/develop
Browse files- .github/workflows/ci.yml +1 -0
- 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 "
|
| 44 |
-
assert "
|
|
|
|
| 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()
|