summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_gitlab.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-08-21 15:38:39 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-08-21 15:38:39 +0200
commita9e8da98236df39249584bd2700a7bdc70c5a187 (patch)
tree5d3517174b608e3c27c94ac68a7d65fe3760d1f3 /gitlab/tests/test_gitlab.py
parente93188e2953929d27f2943ae964eab7e3babd6f2 (diff)
downloadgitlab-a9e8da98236df39249584bd2700a7bdc70c5a187.tar.gz
don't list everything by default
Diffstat (limited to 'gitlab/tests/test_gitlab.py')
-rw-r--r--gitlab/tests/test_gitlab.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/gitlab/tests/test_gitlab.py b/gitlab/tests/test_gitlab.py
index 0743435..60cb94e 100644
--- a/gitlab/tests/test_gitlab.py
+++ b/gitlab/tests/test_gitlab.py
@@ -180,8 +180,7 @@ class TestGitLabMethods(unittest.TestCase):
def test_list_next_link(self):
@urlmatch(scheme="http", netloc="localhost",
- path='/api/v3/projects/1/repository/branches', method="get",
- query=r'per_page=1')
+ path='/api/v3/projects/1/repository/branches', method="get")
def resp_one(url, request):
"""First request:
@@ -217,9 +216,9 @@ class TestGitLabMethods(unittest.TestCase):
resp = response(200, content, headers, None, 5, request)
return resp
- with HTTMock(resp_one, resp_two):
- data = self.gl.list(ProjectBranch, project_id=1,
- per_page=1)
+ with HTTMock(resp_two, resp_one):
+ data = self.gl.list(ProjectBranch, project_id=1, per_page=1,
+ all=True)
self.assertEqual(data[1].branch_name, "testbranch")
self.assertEqual(data[1].project_id, 1)
self.assertEqual(data[1].ref, "a")