mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
decommentato test del metodo get, ma ancora error 500...
This commit is contained in:
parent
e6134abaaf
commit
728fbd66f2
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ 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})
|
||||
#j = json.loads(r.text)
|
||||
#assert j['result'] == "success"
|
||||
r = requests.get(f'http://localhost:5000/api/v1/repositories/3', 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})
|
||||
j = json.loads(r.text)
|
||||
|
|
Loading…
Reference in a new issue