diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-27 21:54:05 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-27 21:54:05 +0100 |
commit | 16d50cd5d52617d9117409ccc9819d8429088e84 (patch) | |
tree | 23c1a9c651aad411e443a97f2a3e4c4521ac69a9 /tools/python_test.py | |
parent | e5438c6440a2477c796427bc598b2b31b10dc762 (diff) | |
download | gitlab-16d50cd5d52617d9117409ccc9819d8429088e84.tar.gz |
Add support for application settings
Diffstat (limited to 'tools/python_test.py')
-rw-r--r-- | tools/python_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py index ff4aa2a..5292ed9 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -23,6 +23,13 @@ assert(token_from_auth == gl.private_token) gl.auth() assert(isinstance(gl.user, gitlab.objects.CurrentUser)) +# settings +settings = gl.settings.get() +settings.default_projects_limit = 42 +settings.save() +settings = gl.settings.get() +assert(settings.default_projects_limit == 42) + # user manipulations new_user = gl.users.create({'email': 'foo@bar.com', 'username': 'foo', 'name': 'foo', 'password': 'foo_password'}) |