Skip to content

Commit b72374f

Browse files
committed
Merge branch 'fix/issues/97' into devel
2 parents d7a8e3e + 9b30358 commit b72374f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

git_repo/services/ext/gitlab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ class GitlabService(RepositoryService):
1919
fqdn = 'gitlab.com'
2020

2121
def __init__(self, *args, **kwarg):
22+
self.gl = gitlab.Gitlab(self.url_ro)
2223
super().__init__(*args, **kwarg)
23-
self.gl = gitlab.Gitlab(self.url_ro, ssl_verify=not self.insecure)
2424

2525
def connect(self):
26+
self.gl.ssl_verify = not self.insecure
2627
self.gl.set_url(self.url_ro)
2728
self.gl.set_token(self._privatekey)
2829
self.gl.token_auth()

tests/integration/test_github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def test_34_list__long(self, capsys, caplog):
353353
self.action_list(namespace='git-repo-test', _long=True)
354354
out, err = capsys.readouterr()
355355
assert err.replace('\t', ' ') == "Status Commits Reqs Issues Forks Coders Watch Likes Lang Modif Name\n"
356-
assert out.replace('\t', ' ') == "F 92 0 0 0 1 0 0 Python Mar 30 13:32 git-repo-test/git-repo\n"
356+
assert out.replace('\t', ' ') == "F 92 0 0 0 1 0 0 Python Mar 30 2016 git-repo-test/git-repo\n"
357357
assert 'GET https://api.github.com/users/git-repo-test/repos' in caplog.text
358358

359359

0 commit comments

Comments
 (0)