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']