crud tests ready

This commit is contained in:
msramalho
2024-10-20 18:12:48 +01:00
parent 0486f0d9ef
commit 45d76e6db8
11 changed files with 427 additions and 29 deletions

View File

@@ -84,7 +84,7 @@ def test_latest(client_with_auth, db_session):
#NB: this insertion is too fast for the ordering to be correct as they are within the same second
# user must exist for /latest to work
crud.get_user(db_session, "morty@example.com")
crud.create_or_get_user(db_session, "morty@example.com")
response = client_with_auth.get("/url/latest")
assert response.status_code == 200