mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 13:04:19 +00:00
Merge branch 'main' of zero.ryg.one:nest/g2-progetto
This commit is contained in:
commit
7ff3fd5e1c
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