From 84b4c11e60327a4350e1011943d111f7849e0802 Mon Sep 17 00:00:00 2001 From: stefanogoldoni Date: Sat, 1 May 2021 15:32:07 +0200 Subject: [PATCH] test dei metodi get e delete --- code/backend/nest_backend/test/repository_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/backend/nest_backend/test/repository_test.py b/code/backend/nest_backend/test/repository_test.py index 0548066..41f3f03 100644 --- a/code/backend/nest_backend/test/repository_test.py +++ b/code/backend/nest_backend/test/repository_test.py @@ -14,11 +14,11 @@ class MyTestCase(unittest.TestCase): auth_code = j['data']['access_token'] # ritorno le info sulla repo speficicata dopo /repositories - r = requests.get(f'http://localhost:5000/api/v1/repositories/3', headers={'authorization': "Bearer " + auth_code}) + r = requests.get(f'http://localhost:5000/api/v1/repositories/15', headers={'authorization': "Bearer " + auth_code}) j = json.loads(r.text) assert j['result'] == "success" - r = requests.delete(f'http://localhost:5000/api/v1/repositories/1', headers={'authorization': "Bearer " + auth_code}) + r = requests.delete(f'http://localhost:5000/api/v1/repositories/15', headers={'authorization': "Bearer " + auth_code}) j = json.loads(r.text) assert j['result'] == 'success'