Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Aug 7, 2024
1 parent e47b468 commit beb45a5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions bert_e/tests/test_bert_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -3360,7 +3360,7 @@ def _create_pull_requests(*args, **kwargs):
gwf.create_integration_pull_requests = real

def test_build_status(self):
pr = self.create_pr('bugfix/TEST-00081', 'development/4.3')
pr = self.create_pr('bugfix/TEST-00081', 'development/5')

# test build not started
with self.assertRaises(exns.BuildNotStarted):
Expand Down Expand Up @@ -3390,7 +3390,7 @@ def test_build_status(self):
backtrace=True)
except exns.BuildFailed as excp:
self.assertIn(
"did not succeed in branch w/10.0/bugfix/TEST-00081",
"did not succeed in branch w/10/bugfix/TEST-00081",
excp.msg,
)
else:
Expand Down Expand Up @@ -6481,10 +6481,16 @@ def test_status_with_queue_without_octopus(self):
self.gitrepo.cmd('git fetch --prune')
expected_branches = [
'q/1/4.3/bugfix/TEST-00001',
'q/1/4/bugfix/TEST-00001',
'q/1/5.1/bugfix/TEST-00001',
'q/1/5/bugfix/TEST-00001',
'q/1/10.0/bugfix/TEST-00001',
'q/1/10/bugfix/TEST-00001',
'w/4/bugfix/TEST-00001',
'w/5.1/bugfix/TEST-00001',
'w/10.0/bugfix/TEST-00001'
'w/5/bugfix/TEST-00001',
'w/10.0/bugfix/TEST-00001',
'w/10/bugfix/TEST-00001'
]
for branch in expected_branches:
self.assertTrue(self.gitrepo.remote_branch_exists(branch),
Expand All @@ -6498,7 +6504,7 @@ def test_status_with_queue_without_octopus(self):
versions = tuple(version for version, _ in status[1])
for _, sha1 in status[1]:
self.set_build_status(sha1=sha1, state='SUCCESSFUL')
self.assertEqual(versions, ('10.0', '5.1', '4.3'))
self.assertEqual(versions, ('10', '10.0', '5', '5.1', '4', '4.3'))
self.process_sha1_job(sha1_q_10_0, 'Merged')

merged_pr = self.berte.status.get('merged PRs', [])
Expand Down

0 comments on commit beb45a5

Please sign in to comment.