Skip to content

Commit 31c6562

Browse files
committed
test: use lazy object in unit tests
1 parent d7a3066 commit 31c6562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/tests/test_gitlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def resp_revert_commit(url, request):
836836
return response(200, content, headers, None, 5, request)
837837

838838
with HTTMock(resp_get_project, resp_get_commit):
839-
project = self.gl.projects.get(1)
839+
project = self.gl.projects.get(1, lazy=True)
840840
commit = project.commits.get("6b2257ea")
841841
self.assertEqual(commit.short_id, "6b2257ea")
842842
self.assertEqual(commit.title, "Initial commit")

0 commit comments

Comments
 (0)