Skip to content

Commit

Permalink
PTFE-1927 add full test with lonely stab
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Aug 9, 2024
1 parent f725fb0 commit 169ac90
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bert_e/tests/test_bert_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -4951,6 +4951,18 @@ def test_dev_major_only(self):
'origin/stabilization/4.3.18'
)

def test_dev_major_lonely_stab(self):
"""Test Bert-E's handling of a lonely stabilization/x.y.z branch."""
# create a stabilization 4.5.2 branch from development/4
self.gitrepo.cmd('git fetch')
self.gitrepo.cmd('git checkout -b stabilization/4.5.2 origin/development/4')
self.gitrepo.cmd('git push -u origin stabilization/4.5.2')
# create a PR from the stabilization branch
pr = self.create_pr('bugfix/TEST-01', 'stabilization/4.5.2')
# expect a DevBranchDoesNotExist exception
with self.assertRaises(exns.DevBranchDoesNotExist):
self.handle(pr.id, options=self.bypass_all, backtrace=True)


class TestQueueing(RepositoryTests):
"""Tests which validate all things related to the merge queue.
Expand Down

0 comments on commit 169ac90

Please sign in to comment.