6464)
6565from tests .common .utils import load_test_data , read_fixture , read_test_data_file
6666
67-
6867TEST_REPO = "repo"
6968TEST_REPO_URL = f"https://user:pass@127.0.0.1/org/{ TEST_REPO } "
7069TEST_REPO_BRANCH = "test_branch"
@@ -1337,7 +1336,7 @@ def test_email_submitter_in_allowlist(self):
13371336 ]
13381337 expected_email = read_fixture ("test_email_submitter_in_allowlist.golden" )
13391338
1340- ( to_list , cc_list ) = ci_results_email_recipients (config , series )
1339+ to_list , cc_list = ci_results_email_recipients (config , series )
13411340 in_reply_to = get_ci_base (series )["msgid" ]
13421341 cmd , email = build_email (
13431342 config ,
@@ -1397,7 +1396,7 @@ def test_email_submitter_not_in_allowlist(self):
13971396 ]
13981397 expected_email = read_fixture ("test_email_submitter_not_in_allowlist.golden" )
13991398
1400- ( to_list , cc_list ) = ci_results_email_recipients (config , series )
1399+ to_list , cc_list = ci_results_email_recipients (config , series )
14011400 in_reply_to = get_ci_base (series )["msgid" ]
14021401 cmd , email = build_email (
14031402 config ,
@@ -1461,7 +1460,7 @@ def test_email_submitter_not_in_allowlist_and_allowlist_disabled(self):
14611460 "test_email_submitter_not_in_allowlist_and_allowlist_disabled.golden"
14621461 )
14631462
1464- ( to_list , cc_list ) = ci_results_email_recipients (config , series )
1463+ to_list , cc_list = ci_results_email_recipients (config , series )
14651464 in_reply_to = get_ci_base (series )["msgid" ]
14661465 cmd , email = build_email (
14671466 config ,
@@ -1484,21 +1483,21 @@ def test_reply_email_recipients(self):
14841483 msg = parser .parsebytes (mbox .encode ("utf-8" ), headersonly = True )
14851484 self .assertIsNotNone (mbox )
14861485 denylist = [re .compile (".*@vger.kernel.org" )]
1487- ( to_list , cc_list ) = reply_email_recipients (msg , denylist = denylist )
1486+ to_list , cc_list = reply_email_recipients (msg , denylist = denylist )
14881487
14891488 self .assertIn ("chen.dylane@linux.dev" , to_list )
14901489 self .assertEqual (len (to_list ), 17 )
14911490 self .assertEqual (len (cc_list ), 1 )
14921491
14931492 allowlist = [re .compile (".*@vger.kernel.org" )]
1494- ( to_list , cc_list ) = reply_email_recipients (msg , allowlist = allowlist )
1493+ to_list , cc_list = reply_email_recipients (msg , allowlist = allowlist )
14951494 self .assertEqual (to_list , [])
14961495 self .assertEqual (len (cc_list ), 3 )
14971496
14981497 # test both
14991498 allowlist = [re .compile (".*@linux.dev" )]
15001499 denylist = [re .compile (".*@gmail.com" )]
1501- ( to_list , cc_list ) = reply_email_recipients (
1500+ to_list , cc_list = reply_email_recipients (
15021501 msg , allowlist = allowlist , denylist = denylist
15031502 )
15041503 self .assertIn ("chen.dylane@linux.dev" , to_list )
@@ -1507,13 +1506,13 @@ def test_reply_email_recipients(self):
15071506
15081507 # test denylist all
15091508 denylist = [re .compile (".*" )]
1510- ( to_list , cc_list ) = reply_email_recipients (msg , denylist = denylist )
1509+ to_list , cc_list = reply_email_recipients (msg , denylist = denylist )
15111510 self .assertEqual (to_list , [])
15121511 self .assertEqual (cc_list , [])
15131512
15141513 # test denylist all, but the sender
15151514 denylist = [re .compile (".*" )]
1516- ( to_list , cc_list ) = reply_email_recipients (
1515+ to_list , cc_list = reply_email_recipients (
15171516 msg , denylist = denylist , always_reply_to_author = True
15181517 )
15191518 self .assertEqual (to_list , ["chen.dylane@linux.dev" ])
@@ -1707,9 +1706,9 @@ async def test_forward_pr_comments(self, m: aioresponses) -> None:
17071706 )
17081707
17091708 mock_send_email .assert_called_once ()
1710- ( _ , to_list , cc_list , subject , body , in_reply_to ) = (
1711- mock_send_email . call_args [ 0 ]
1712- )
1709+ _ , to_list , cc_list , subject , body , in_reply_to = mock_send_email . call_args [
1710+ 0
1711+ ]
17131712
17141713 self .assertIn ("chen.dylane@linux.dev" , to_list )
17151714 self .assertEqual (len (to_list ), 17 )
0 commit comments