mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
user_create testata e funzionante
This commit is contained in:
parent
d1f9a89ae3
commit
6d62532a51
3 changed files with 36 additions and 21860 deletions
|
@ -5,10 +5,11 @@
|
|||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="DATABASE_URI" value="postgresql://nest:NaniEstraggonoSmeraldiTopazi@zero.ryg.one/nest" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="C:\Users\loren\AppData\Local\pypoetry\Cache\virtualenvs\g2-progetto-pFEbXYE_-py3.8\Scripts\python.exe" />
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/code/backend/nest_backend" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
|
|
|
@ -13,11 +13,10 @@ def test_user_create():
|
|||
auth_code = j['data']['access_token']
|
||||
|
||||
r = requests.post(f'http://localhost:5000/api/user/create', headers={'authorization': "Bearer " + auth_code},
|
||||
json={'email': 'utente5@nest.com', 'password': '1234', 'username': 'utente5'})
|
||||
json={'email': 'utente11@nest.com', 'password': '1234', 'username': 'utente11'})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "success"
|
||||
|
||||
auth_code = j['data']['access_token']
|
||||
print("User_create eseguito correttamente!")
|
||||
|
||||
|
||||
|
|
21888
code/frontend/package-lock.json
generated
21888
code/frontend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue