1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-21 20:44:18 +00:00

viene cancellato utente1 invece di utente, che serve anche nei test successivi

This commit is contained in:
stefanogoldoni 2021-05-11 23:08:07 +02:00
parent d9ce27ac63
commit 4efc58940e

View file

@ -16,6 +16,7 @@ class TestUserGet:
assert r.json["result"] == "failure"
assert r.json["msg"] == "Could not locate the user."
# ritorna i dati di tutti gli utenti registrati
class TestUserGetAll:
def test_for_success(self, flask_client: Client, admin_headers):
@ -47,7 +48,7 @@ class TestUserAdd:
class TestUserDelete:
def test_for_success(self, flask_client: Client, admin_headers):
r = flask_client.delete(f'/api/v1/users/utente_test@nest.com', headers=admin_headers)
r = flask_client.delete(f'/api/v1/users/utente1_test@nest.com', headers=admin_headers)
assert b'success' in r.data
# the admin tries to commit suicide