1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00

delete testata in tutti i metodi

This commit is contained in:
stefanogoldoni 2021-04-30 00:12:25 +02:00
parent be7820521c
commit 549877fb53

View file

@ -44,13 +44,13 @@ class MyTestCase(unittest.TestCase):
print("delete User NON eseguito correttamente!") print("delete User NON eseguito correttamente!")
r = requests.delete(f'http://localhost:5000/api/v1/users/utente12@nest.com', r = requests.delete(f'http://localhost:5000/api/v1/users/utente3@nest.com',
headers={'authorization': "Bearer " + auth_code},) headers={'authorization': "Bearer " + auth_code},)
j = json.loads(r.text) j = json.loads(r.text)
assert j['result'] == "success" assert j['result'] == "success"
print("User_delete eseguito correttamente!") print("User_delete eseguito correttamente!")
print("Testing del metodo user_delete") print("Testing del metodo user delete")