diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 21:11:17 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-05-23 21:11:24 +0200 |
commit | e853a30b0c083fa835513a82816b315cf147092c (patch) | |
tree | 5fde97d15437f9cb9a8c4ce286d58f9113061009 /tools/python_test.py | |
parent | f3738854f0d010bade44edc60404dbab984d2adb (diff) | |
download | gitlab-e853a30b0c083fa835513a82816b315cf147092c.tar.gz |
Reorganise the code to handle v3 and v4 objects
Having objects managing both versions will only make the code more
complicated, with lots of tests everywhere. This solution might generate
some code duplication, but it should be maintainable.
Diffstat (limited to 'tools/python_test.py')
-rw-r--r-- | tools/python_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python_test.py b/tools/python_test.py index 41df221..b56a97d 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -29,7 +29,7 @@ token_from_auth = gl.private_token gl = gitlab.Gitlab.from_config(config_files=['/tmp/python-gitlab.cfg']) assert(token_from_auth == gl.private_token) gl.auth() -assert(isinstance(gl.user, gitlab.objects.CurrentUser)) +assert(isinstance(gl.user, gitlab.v3.objects.CurrentUser)) # settings settings = gl.settings.get() |