diff options
| author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-31 07:07:45 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-12-31 07:07:45 +0100 |
| commit | 1db3cc1e4f7e8f3bfae1f2e8cdbd377701789eb4 (patch) | |
| tree | 70f2bd456f277c25cda2d4dddb43f70baf57b1fc /gitlab/__init__.py | |
| parent | 2a76b7490ba3dc6de6080d2dab55be017c09db59 (diff) | |
| download | gitlab-1db3cc1e4f7e8f3bfae1f2e8cdbd377701789eb4.tar.gz | |
fix the tests
Diffstat (limited to 'gitlab/__init__.py')
| -rw-r--r-- | gitlab/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 7b23903..ebd7648 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -697,7 +697,9 @@ class GitlabObject(object): @classmethod def get(cls, gl, id, **kwargs): - if cls.canGet is True: + if cls.canGet is False: + raise NotImplementedError + elif cls.canGet is True: return cls(gl, id, **kwargs) elif cls.canGet == 'from_list': for obj in cls.list(gl, **kwargs): |
