1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00

cancellato utente_test al termine dei test

This commit is contained in:
stefanogoldoni 2021-04-29 00:32:47 +02:00
parent 0b09d2274a
commit 54217fc8c2

View file

@ -15,7 +15,7 @@ class MyTestCase(unittest.TestCase):
auth_code = j['data']['access_token'] auth_code = j['data']['access_token']
r = requests.post(f'http://localhost:5000/api/user/remove', headers={'authorization': "Bearer " + auth_code}, r = requests.post(f'http://localhost:5000/api/user/remove', headers={'authorization': "Bearer " + auth_code},
json={'email': 'utente15@nest.com'}) json={'email': 'utente_test@nest.com'})
j = json.loads(r.text) j = json.loads(r.text)
assert j['result'] == "success" assert j['result'] == "success"