summaryrefslogtreecommitdiff
path: root/gitlab/tests/objects/test_hooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/tests/objects/test_hooks.py')
-rw-r--r--gitlab/tests/objects/test_hooks.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/gitlab/tests/objects/test_hooks.py b/gitlab/tests/objects/test_hooks.py
deleted file mode 100644
index fe5c21c..0000000
--- a/gitlab/tests/objects/test_hooks.py
+++ /dev/null
@@ -1,29 +0,0 @@
-"""
-GitLab API: https://docs.gitlab.com/ce/api/system_hooks.html
-"""
-import pytest
-import responses
-
-from gitlab.v4.objects import Hook
-
-
-@pytest.fixture
-def resp_get_hook():
- content = {"url": "testurl", "id": 1}
-
- with responses.RequestsMock() as rsps:
- rsps.add(
- method=responses.GET,
- url="http://localhost/api/v4/hooks/1",
- json=content,
- content_type="application/json",
- status=200,
- )
- yield rsps
-
-
-def test_hooks(gl, resp_get_hook):
- data = gl.hooks.get(1)
- assert isinstance(data, Hook)
- assert data.url == "testurl"
- assert data.id == 1