diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-25 01:32:34 +0200 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2022-06-25 09:30:03 -0700 |
| commit | ce9216ccc542d834be7f29647c7ee98c2ca5bb01 (patch) | |
| tree | 3b8ed3ffa476477e3ff8cb4a47ade4e3a8582d47 /tests/functional/api/test_projects.py | |
| parent | b0f02facef2ea30f24dbfb3c52974f34823e9bba (diff) | |
| download | gitlab-ce9216ccc542d834be7f29647c7ee98c2ca5bb01.tar.gz | |
feat(api): support head() method for get and list endpoints
Diffstat (limited to 'tests/functional/api/test_projects.py')
| -rw-r--r-- | tests/functional/api/test_projects.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functional/api/test_projects.py b/tests/functional/api/test_projects.py index 8d367de..ac8b34f 100644 --- a/tests/functional/api/test_projects.py +++ b/tests/functional/api/test_projects.py @@ -6,6 +6,16 @@ import gitlab from gitlab.v4.objects.projects import ProjectStorage +def test_projects_head(gl): + headers = gl.projects.head() + assert headers["x-total"] + + +def test_project_head(gl, project): + headers = gl.projects.head(project.id) + assert headers["content-type"] == "application/json" + + def test_create_project(gl, user): # Moved from group tests chunk in legacy tests, TODO cleanup admin_project = gl.projects.create({"name": "admin_project"}) |
