From e853a30b0c083fa835513a82816b315cf147092c Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Tue, 23 May 2017 21:11:17 +0200 Subject: 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. --- tools/python_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/python_test.py') 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() -- cgit v1.2.1