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

creazione utente_test

This commit is contained in:
stefanogoldoni 2021-04-28 23:22:18 +02:00
parent 8128b4622e
commit 5b71de4a51

View file

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