Commit 2a162b76 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Added a basic push test for a Project in Group

This is obviously a common use case, that can be
subtly different from the case of a Project in User
namespace, but it wasn't explicitely tested until now.

(test added while debugging merge with upstream GitLab 13.7)
parent 0cdc715a0d54
Pipeline #15988 waiting for manual action with stages
in 16 seconds
......@@ -6,6 +6,8 @@ from .utils import (
from .utils.group import Group
from .utils.project import Project
from .test_push import prepare_simple_repo
parametrize = pytest.mark.parametrize
......@@ -64,6 +66,20 @@ def test_group_project(heptapod, hashed_storage):
group.api_delete()
def test_group_project_push(heptapod, tmpdir):
with Group.api_create(heptapod, unique_name('test_group'),
user_name='test_basic') as group:
with Project.api_create(heptapod,
project_name='test_proj',
user_name='test_basic',
group=group) as project:
prepare_simple_repo(project, tmpdir / 'repo')
assert project.api_branch_titles() == {
'branch/default': 'Commit 0',
'topic/default/zetop': 'Commit 1',
}
@needs.services
@parametrize('hashed_storage', [True, False])
def test_subgroups(heptapod, hashed_storage):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment