Skip to content

Commit aff7954

Browse files
test: don't delete source branch by default for projects
GitLab 19.0 changed or fixed things. And now source branches automatically get deleted when a merge request is merged. This breaks our test assumptions. Now when creating the project set `remove_source_branch_after_merge=False`
1 parent 3b60394 commit aff7954

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/functional/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def project(gl):
342342
_id = uuid.uuid4().hex
343343
name = f"test-project-{_id}"
344344

345-
project = gl.projects.create(name=name)
345+
project = gl.projects.create(name=name, remove_source_branch_after_merge=False)
346346

347347
yield project
348348

0 commit comments

Comments
 (0)