Skip to content

Commit

Permalink
Update test_transfer_project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amimas authored Jan 1, 2024
1 parent 00d0be2 commit 02fdc90
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tests/acceptance/standard/test_transfer_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,26 @@ def test__transfer_between_root_group_and_subgroup(
# Now test the transfer the opposite direction by transferring the same project back to the original group
# Transferring the project to the original location also helps because the fixtures used in this test is shared
# with other tests and they will need the fixture in its original form.
project_new_path_with_namespace = (
f"{group.path}/{subgroup.path}/{project_in_subgroup.name}"
)
project_source = f"{group.path}/{project_in_subgroup.name}"
projects_in_destination_before_transfer = subgroup.projects.list()
# project_new_path_with_namespace = (
# f"{group.path}/{subgroup.path}/{project_in_subgroup.name}"
# )
# project_source = f"{group.path}/{project_in_subgroup.name}"
# projects_in_destination_before_transfer = subgroup.projects.list()

config = f"""
projects_and_groups:
{project_new_path_with_namespace}:
project:
transfer_from: {project_source}
"""
# config = f"""
# projects_and_groups:
# {project_new_path_with_namespace}:
# project:
# transfer_from: {project_source}
# """

run_gitlabform(config, project_new_path_with_namespace)
projects_in_destination_after_transfer = subgroup.projects.list()
# run_gitlabform(config, project_new_path_with_namespace)
# projects_in_destination_after_transfer = subgroup.projects.list()

assert (
len(projects_in_destination_after_transfer)
== len(projects_in_destination_before_transfer) + 1
)
# assert (
# len(projects_in_destination_after_transfer)
# == len(projects_in_destination_before_transfer) + 1
# )

def test__transfer_as_same_path_at_namespae_already_exist(
self, project_for_function, group, other_group
Expand Down

0 comments on commit 02fdc90

Please sign in to comment.