From 4efc58940ebbc3cf1a72568f02be5518abe5aaeb Mon Sep 17 00:00:00 2001 From: stefanogoldoni Date: Tue, 11 May 2021 23:08:07 +0200 Subject: [PATCH] viene cancellato utente1 invece di utente, che serve anche nei test successivi --- code/backend/nest_backend/test/test_user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/backend/nest_backend/test/test_user.py b/code/backend/nest_backend/test/test_user.py index db8572e..9c8379a 100644 --- a/code/backend/nest_backend/test/test_user.py +++ b/code/backend/nest_backend/test/test_user.py @@ -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