@@ -1250,14 +1250,15 @@ def test_request_integration_branch_by_creating_pull_requests(self):
1250
1250
pr .id , settings = settings , options = options , backtrace = True )
1251
1251
self .assertEqual (len (list (pr .get_comments ())), 4 )
1252
1252
self .assertIn ('Integration data created' , self .get_last_pr_comment (pr ))
1253
-
1253
+
1254
1254
options = self .bypass_all
1255
1255
with self .assertRaises (exns .SuccessMessage ):
1256
1256
self .handle (
1257
1257
pr .id , settings = settings , options = options , backtrace = True )
1258
1258
1259
1259
self .assertIn (
1260
- 'I have successfully merged the changeset' , self .get_last_pr_comment (pr ))
1260
+ 'I have successfully merged the changeset' ,
1261
+ self .get_last_pr_comment (pr ))
1261
1262
1262
1263
def test_creation_integration_branch_by_approve (self ):
1263
1264
"""Test pr.approve() to request integration branches creation.
@@ -1291,19 +1292,21 @@ def test_creation_integration_branch_by_approve(self):
1291
1292
prs = [pr_1 , pr_2 ]
1292
1293
1293
1294
for pr in prs :
1294
- options = self .bypass_all_but (['bypass_build_status' , 'bypass_author_approval' ])
1295
+ options = self .bypass_all_but (['bypass_build_status' ,
1296
+ 'bypass_author_approval' ])
1295
1297
with self .assertRaises (exns .ApprovalRequired ):
1296
1298
self .handle (pr .id , options = options , backtrace = True )
1297
1299
1298
1300
self .assertEqual (len (list (pr .get_comments ())), 3 )
1299
1301
1300
1302
self .assertIn (
1301
- 'Integration data created' , list (pr .get_comments ())[- 2 ].text )
1303
+ 'Integration data created' , list (pr .get_comments ())[- 2 ].text )
1302
1304
1303
1305
self .assertIn (
1304
1306
'Waiting for approval' , self .get_last_pr_comment (pr ))
1305
1307
self .assertIn (
1306
- 'The following approvals are needed' , self .get_last_pr_comment (pr ))
1308
+ 'The following approvals are needed' ,
1309
+ self .get_last_pr_comment (pr ))
1307
1310
1308
1311
if pr .src_branch == "feature/TEST-0069" :
1309
1312
pr .approve ()
@@ -1318,9 +1321,10 @@ def test_creation_integration_branch_by_approve(self):
1318
1321
with self .assertRaises (exns .SuccessMessage ):
1319
1322
self .handle (
1320
1323
pr .id , settings = settings , options = options , backtrace = True )
1321
-
1324
+
1322
1325
self .assertIn (
1323
- 'I have successfully merged the changeset' , self .get_last_pr_comment (pr ))
1326
+ 'I have successfully merged the changeset' ,
1327
+ self .get_last_pr_comment (pr ))
1324
1328
1325
1329
def test_integration_branch_creation_latest_branch (self ):
1326
1330
"""Test there is no comment to request integration branches creation.
0 commit comments