fix(tests): fixed the creation of non-linear commits creation in tests

- This addresses and makes a fix for #5706
This commit is contained in:
RhodeCode Admin 2023-11-23 09:41:19 +01:00
parent 3d6f5a067e
commit 8a480af3c1
8 changed files with 1130 additions and 830 deletions

View file

@ -342,7 +342,7 @@ class TestCreatePullRequestApi(object):
commits = [
{'message': 'initial'},
{'message': 'change'},
{'message': 'new-feature', 'parents': ['initial']},
{'message': 'new-feature', 'parents': ['initial'], 'branch': 'feature'},
]
self.commit_ids = backend.create_master_repo(commits)
self.source = backend.create_repo(heads=[source_head])