mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
aggiunto verifica senza parametri
This commit is contained in:
parent
bde82a4829
commit
5603f89064
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,9 @@ def test_login():
|
|||
r = requests.post('http://localhost:5000/api/login', json={'email': 'admin@admin.com', 'password': 'amogus'})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "failure"
|
||||
r = requests.post('http://localhost:5000/api/login', json={'email': '', 'password': ''})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "failure"
|
||||
r = requests.post('http://localhost:5000/api/login', json={'email': 'admin@admin.com', 'password': 'password'})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "success"
|
||||
|
|
Loading…
Reference in a new issue