fix: minor edits tests

dependabot/pip/requests-2.31.0
Pierre-Louis Guhur 1 year ago committed by guhur
parent 787391abe2
commit 5317ded536

@ -303,9 +303,9 @@ def test_update_election():
f"/elections", json=data, headers={"Authorization": f"Bearer {token}"}
)
assert response.status_code == 200, response.text
response = client.get(f"/elections/{data['ref']}", json=data)
assert response.status_code == 200, response.text
data2 = response.json()
response2 = client.get(f"/elections/{data['ref']}", json=data)
assert response2.status_code == 200, response2.text
data2 = response2.json()
assert data2["name"] == new_name
# We can update a candidate, or a grade

@ -4,4 +4,4 @@ echo "SQLITE=True" >> $tmpfile
docker run --env-file $tmpfile \
majority-judgment/api-python:latest \
pytest
-c "pip install -r requirements-dev.txt; pytest"

Loading…
Cancel
Save