We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent31c6562 commitcb43695Copy full SHA for cb43695
gitlab/tests/test_gitlab.py
@@ -795,14 +795,6 @@ def resp_deactivate(url, request):
795
self.gl.users.get(1,lazy=True).deactivate()
796
797
deftest_commit_revert(self):
798
-@urlmatch(
799
-scheme="http",netloc="localhost",path="/api/v4/projects/1$",method="get"
800
- )
801
-defresp_get_project(url,request):
802
-headers= {"content-type":"application/json"}
803
-content='{"name": "name", "id": 1}'.encode("utf-8")
804
-returnresponse(200,content,headers,None,5,request)
805
-
806
@urlmatch(
807
scheme="http",
808
netloc="localhost",
@@ -835,7 +827,7 @@ def resp_revert_commit(url, request):
835
827
content=content.encode("utf-8")
836
828
returnresponse(200,content,headers,None,5,request)
837
829
838
-withHTTMock(resp_get_project,resp_get_commit):
830
+withHTTMock(resp_get_commit):
839
831
project=self.gl.projects.get(1,lazy=True)
840
832
commit=project.commits.get("6b2257ea")
841
833
self.assertEqual(commit.short_id,"6b2257ea")