mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-29 07:54:19 +00:00
creazione utente_test
This commit is contained in:
parent
8128b4622e
commit
5b71de4a51
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,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/create', headers={'authorization': "Bearer " + auth_code},
|
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)
|
j = json.loads(r.text)
|
||||||
assert j['result'] == "success"
|
assert j['result'] == "success"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue