summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-02-19 20:35:43 +0100
committerNejc Habjan <hab.nejc@gmail.com>2020-02-19 20:35:43 +0100
commit31c65621ff592dda0ad3bf854db906beb8a48e9a (patch)
tree48a95de1c263caed9d457724651baa1549c4fd2d
parentd7a3066e03164af7f441397eac9e8cfef17c8e0c (diff)
downloadgitlab-31c65621ff592dda0ad3bf854db906beb8a48e9a.tar.gz
test: use lazy object in unit tests
-rw-r--r--gitlab/tests/test_gitlab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/tests/test_gitlab.py b/gitlab/tests/test_gitlab.py
index aed675e..5e0f3c2 100644
--- a/gitlab/tests/test_gitlab.py
+++ b/gitlab/tests/test_gitlab.py
@@ -836,7 +836,7 @@ class TestGitlab(unittest.TestCase):
return response(200, content, headers, None, 5, request)
with HTTMock(resp_get_project, resp_get_commit):
- project = self.gl.projects.get(1)
+ project = self.gl.projects.get(1, lazy=True)
commit = project.commits.get("6b2257ea")
self.assertEqual(commit.short_id, "6b2257ea")
self.assertEqual(commit.title, "Initial commit")