diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-08-04 15:33:31 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-08-04 15:33:31 +0200 |
commit | 2816c1ae51b01214012679b74aa14de1a6696eb5 (patch) | |
tree | bf6b679a43aabdd76becfe0231b464c7cb42ae4b /tools/python_test_v4.py | |
parent | eee39a3a5f1ef3bccc45b0f23009531a9bf76801 (diff) | |
download | gitlab-rework_api.tar.gz |
Make the project services work in v4rework_api
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r-- | tools/python_test_v4.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 08ee0aa..cba4833 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -316,13 +316,14 @@ settings = gl.notificationsettings.get() assert(settings.level == gitlab.NOTIFICATION_LEVEL_WATCH) # services -# NOT IMPLEMENTED YET -#service = admin_project.services.get(service_name='asana') -#service.active = True -#service.api_key = 'whatever' -#service.save() -#service = admin_project.services.get(service_name='asana') -#assert(service.active == True) +service = admin_project.services.get('asana') +service.api_key = 'whatever' +service.save() +service = admin_project.services.get('asana') +assert(service.active == True) +service.delete() +service = admin_project.services.get('asana') +assert(service.active == False) # snippets snippets = gl.snippets.list(all=True) |