Skip to content

Commit e93188e

Browse files
author
Gauvain Pocentek
committed
fix pep8 test
1 parent 24d5035 commit e93188e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

gitlab/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,8 @@ class GitlabObject(object):
627627
"""
628628
#: Url to use in GitLab for this object
629629
_url = None
630-
#some objects (e.g. merge requests) have different urls for singular and plural
630+
# Some objects (e.g. merge requests) have different urls for singular and
631+
# plural
631632
_urlPlural = None
632633
_returnClass = None
633634
_constructorTypes = None

gitlab/tests/test_gitlab.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import unittest
2323
except ImportError:
2424
import unittest2 as unittest
25-
import json
2625

2726
from httmock import HTTMock # noqa
2827
from httmock import response # noqa
@@ -184,16 +183,16 @@ def test_list_next_link(self):
184183
path='/api/v3/projects/1/repository/branches', method="get",
185184
query=r'per_page=1')
186185
def resp_one(url, request):
187-
"""
188-
First request:
186+
"""First request:
187+
189188
http://localhost/api/v3/projects/1/repository/branches?per_page=1
190189
"""
191190
headers = {
192191
'content-type': 'application/json',
193-
'link': '<http://localhost/api/v3/projects/1/repository/branc' \
194-
'hes?page=2&per_page=0>; rel="next", <http://localhost/api/v3' \
195-
'/projects/1/repository/branches?page=2&per_page=0>; rel="las' \
196-
't", <http://localhost/api/v3/projects/1/repository/branches?' \
192+
'link': '<http://localhost/api/v3/projects/1/repository/branc'
193+
'hes?page=2&per_page=0>; rel="next", <http://localhost/api/v3'
194+
'/projects/1/repository/branches?page=2&per_page=0>; rel="las'
195+
't", <http://localhost/api/v3/projects/1/repository/branches?'
197196
'page=1&per_page=0>; rel="first"'
198197
}
199198
content = ('[{"branch_name": "otherbranch", '
@@ -207,10 +206,10 @@ def resp_one(url, request):
207206
def resp_two(url, request):
208207
headers = {
209208
'content-type': 'application/json',
210-
'link': '<http://localhost/api/v3/projects/1/repository/branc' \
211-
'hes?page=1&per_page=0>; rel="prev", <http://localhost/api/v3' \
212-
'/projects/1/repository/branches?page=2&per_page=0>; rel="las' \
213-
't", <http://localhost/api/v3/projects/1/repository/branches?' \
209+
'link': '<http://localhost/api/v3/projects/1/repository/branc'
210+
'hes?page=1&per_page=0>; rel="prev", <http://localhost/api/v3'
211+
'/projects/1/repository/branches?page=2&per_page=0>; rel="las'
212+
't", <http://localhost/api/v3/projects/1/repository/branches?'
214213
'page=1&per_page=0>; rel="first"'
215214
}
216215
content = ('[{"branch_name": "testbranch", '

0 commit comments

Comments
 (0)