diff options
| author | John L. Villalovos <john@sodarock.com> | 2021-05-26 21:04:31 -0700 |
|---|---|---|
| committer | John L. Villalovos <john@sodarock.com> | 2021-05-26 21:04:31 -0700 |
| commit | 1ac0722bc086b18c070132a0eb53747bbdf2ce0a (patch) | |
| tree | db9dbb8da13907eb6ee293adcaf6c9bdb1dd7d52 /gitlab/tests/objects/test_hooks.py | |
| parent | 90ecf2f91129ffa0cfb5db58300fbd11638d4ecc (diff) | |
| download | gitlab-1ac0722bc086b18c070132a0eb53747bbdf2ce0a.tar.gz | |
chore: move 'gitlab/tests/' dir to 'tests/unit/'
Move the 'gitlab/tests/' directory to 'tests/unit/' so we have all the
tests located under the 'tests/' directory.
Diffstat (limited to 'gitlab/tests/objects/test_hooks.py')
| -rw-r--r-- | gitlab/tests/objects/test_hooks.py | 29 |
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 |
