Skip to content

Commit 241c32e

Browse files
committed
remove page parameters from getlabel, use unittests2 as test lib
1 parent b8f94b2 commit 241c32e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,13 +1786,12 @@ def deletegitlabciservice(self, project_id, token, project_url):
17861786
else:
17871787
return False
17881788

1789-
def getlabels(self, project_id, page=1, per_page=20):
1789+
def getlabels(self, project_id):
17901790
"""Get all labels for given project.
17911791
17921792
:param project_id: The ID of a project
17931793
:return: list of the labels
17941794
"""
1795-
data = {'page': page, 'per_page': per_page}
17961795
request = requests.get("{0}/{1}/labels".format(self.projects_url, project_id), params=data,
17971796
verify=self.verify_ssl, headers=self.headers)
17981797

gitlab_tests/pyapi-gitlab_test.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
pyapi-gitlab tests
33
"""
44

5-
import sys
6-
if sys.version_info[:2] == (2, 6):
7-
import unittest2 as unittest
8-
else:
9-
import unittest
10-
5+
import unittest2 as unittest
116
import gitlab
127
import os
138
import time

0 commit comments

Comments
 (0)