From deefe6841a7416fe82c51d0277d98f823dd11078 Mon Sep 17 00:00:00 2001 From: stefanogoldoni Date: Thu, 29 Apr 2021 22:46:30 +0200 Subject: [PATCH] eliminate print di controllo --- code/backend/nest_backend/test/login_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/backend/nest_backend/test/login_test.py b/code/backend/nest_backend/test/login_test.py index 27a8758..f810295 100644 --- a/code/backend/nest_backend/test/login_test.py +++ b/code/backend/nest_backend/test/login_test.py @@ -8,13 +8,13 @@ auth_code = "" class MyTestCase(unittest.TestCase): def test_login(self): global auth_code - r = requests.post('http://localhost:5000/api/login', json={'email': 'admin@admin.com', 'password': 'amogus'}) + r = requests.post('http://localhost:5000/api/v1/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': ''}) + r = requests.post('http://localhost:5000/api/v1/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'}) + r = requests.post('http://localhost:5000/api/v1/login', json={'email': 'admin@admin.com', 'password': 'password'}) j = json.loads(r.text) assert j['result'] == "success" auth_code = j['data']['access_token']