Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf3a8fcc

Browse files
committed
test: revert "run loop for top level groups only in reset_gitlab"
This reverts commit5343394.
1 parent7281ccc commitf3a8fcc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎tests/functional/conftest.py‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,15 @@ def reset_gitlab(gl: gitlab.Gitlab) -> None:
9595
logging.info(f"Deleting project:{project.path_with_namespace!r}")
9696
helpers.safe_delete(project)
9797

98-
# skip deletion of a descendant group to prevent scenarios where parent group gets deleted leaving a dangling descendant whose deletion will throw 404s.
99-
forgroupingl.groups.list(top_level_only=True):
98+
forgroupingl.groups.list():
99+
100+
# skip deletion of a descendant group to prevent scenarios where parent group gets deleted leaving a dangling descendant whose deletion will throw 404s.
101+
ifgroup.parent_id:
102+
logging.info(
103+
f"Skipping deletion of{group.full_path} as it is a descendant group and will be removed when the parent group is deleted"
104+
)
105+
continue
106+
100107
fordeploy_tokeningroup.deploytokens.list():
101108
logging.info(
102109
f"Deleting deploy token:{deploy_token.username!r} in "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp