summaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-05-27 17:35:33 +0200
committerJohn Villalovos <john@sodarock.com>2022-05-27 08:55:35 -0700
commit8867ee59884ae81d6457ad6e561a0573017cf6b2 (patch)
tree0b8fde1660337708019582ffa47d7f2cc374d8e5 /tests/functional
parent792cee939843d8df4c87bb8068be147ec97fabac (diff)
downloadgitlab-8867ee59884ae81d6457ad6e561a0573017cf6b2.tar.gz
feat(objects): support get project storage endpoint
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/api/test_projects.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/api/test_projects.py b/tests/functional/api/test_projects.py
index 8f8abbe..50cc554 100644
--- a/tests/functional/api/test_projects.py
+++ b/tests/functional/api/test_projects.py
@@ -3,6 +3,7 @@ import uuid
import pytest
import gitlab
+from gitlab.v4.objects.projects import ProjectStorage
def test_create_project(gl, user):
@@ -285,6 +286,12 @@ def test_project_stars(project):
assert project.star_count == 0
+def test_project_storage(project):
+ storage = project.storage.get()
+ assert isinstance(storage, ProjectStorage)
+ assert storage.repository_storage == "default"
+
+
def test_project_tags(project, project_file):
tag = project.tags.create({"tag_name": "v1.0", "ref": "main"})
assert len(project.tags.list()) == 1