mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
update repository_test
This commit is contained in:
parent
a075ecbe88
commit
86ed277f31
1 changed files with 4 additions and 2 deletions
|
@ -13,15 +13,17 @@ class MyTestCase(unittest.TestCase):
|
|||
assert j['result'] == "success"
|
||||
auth_code = j['data']['access_token']
|
||||
|
||||
'''# ritorno le info sulla repo speficicata dopo /repositories
|
||||
# ritorno le info sulla repository speficicata
|
||||
r = requests.get(f'http://localhost:5000/api/v1/repositories/17', headers={'authorization': "Bearer " + auth_code})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "success"
|
||||
|
||||
# cancello la repository specificata
|
||||
r = requests.delete(f'http://localhost:5000/api/v1/repositories/17', headers={'authorization': "Bearer " + auth_code})
|
||||
j = json.loads(r.text)
|
||||
assert j['result'] == "success"'''
|
||||
assert j['result'] == "success"
|
||||
|
||||
# modifico il nome e lo stato della repository specificata
|
||||
r = requests.patch(f'http://localhost:5000/api/v1/repositories/16', headers={'authorization': "Bearer " + auth_code},
|
||||
json={'name': 'newname', 'open': True})
|
||||
j = json.loads(r.text)
|
||||
|
|
Loading…
Reference in a new issue