diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-19 21:09:39 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-19 21:09:39 +0100 |
commit | cb436951b1fde9c010e966819c75d0d7adacf17d (patch) | |
tree | d603f98235d9bfb6b1968a4e3412bb0d8efe72ba /gitlab | |
parent | 31c65621ff592dda0ad3bf854db906beb8a48e9a (diff) | |
download | gitlab-cb436951b1fde9c010e966819c75d0d7adacf17d.tar.gz |
test: remove duplicate resp_get_project
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/tests/test_gitlab.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gitlab/tests/test_gitlab.py b/gitlab/tests/test_gitlab.py index 5e0f3c2..b56889a 100644 --- a/gitlab/tests/test_gitlab.py +++ b/gitlab/tests/test_gitlab.py @@ -796,14 +796,6 @@ class TestGitlab(unittest.TestCase): def test_commit_revert(self): @urlmatch( - scheme="http", netloc="localhost", path="/api/v4/projects/1$", method="get" - ) - def resp_get_project(url, request): - headers = {"content-type": "application/json"} - content = '{"name": "name", "id": 1}'.encode("utf-8") - return response(200, content, headers, None, 5, request) - - @urlmatch( scheme="http", netloc="localhost", path="/api/v4/projects/1/repository/commits/6b2257ea", @@ -835,7 +827,7 @@ class TestGitlab(unittest.TestCase): content = content.encode("utf-8") return response(200, content, headers, None, 5, request) - with HTTMock(resp_get_project, resp_get_commit): + with HTTMock(resp_get_commit): project = self.gl.projects.get(1, lazy=True) commit = project.commits.get("6b2257ea") self.assertEqual(commit.short_id, "6b2257ea") |