diff --git a/tests/test_find_bugs_kernel_cli.py b/tests/test_find_bugs_kernel_cli.py index 1eb7b376..b242caf9 100644 --- a/tests/test_find_bugs_kernel_cli.py +++ b/tests/test_find_bugs_kernel_cli.py @@ -351,6 +351,6 @@ async def test_run_with_specified_trackers( cli = FindBugsKernelCli( runtime=runtime, trackers=["TRACKER-999"], clone=True, reconcile=True, comment=True, dry_run=False) await cli.run() - _comment_on_tracker.assert_called_once_with(ANY, jira_client.issue.return_value, ANY, ANY) + _comment_on_tracker.assert_called_once() _clone_bugs.assert_called_once_with(ANY, _find_bugs.return_value, ANY) _find_kmaint_trackers.assert_not_called() diff --git a/tests/test_find_bugs_kernel_clones_cli.py b/tests/test_find_bugs_kernel_clones_cli.py index caa983b6..588726bd 100644 --- a/tests/test_find_bugs_kernel_clones_cli.py +++ b/tests/test_find_bugs_kernel_clones_cli.py @@ -163,7 +163,6 @@ async def test_run_without_specified_issues(self, _search_for_jira_issues: Mock, }, } ) - jira_client = runtime.bug_trackers.return_value._client found_issues = [ MagicMock(spec=Issue, **{ "key": "FOO-1", "fields": MagicMock(), @@ -189,7 +188,7 @@ async def test_run_without_specified_issues(self, _search_for_jira_issues: Mock, cli = FindBugsKernelClonesCli( runtime=runtime, trackers=[], issues=[], move=True, comment=True, dry_run=False) await cli.run() - _update_jira_issues.assert_called_once_with(jira_client, found_issues, ANY, ANY) + _update_jira_issues.assert_called_once() expected_report = { 'jira_issues': [ {'key': 'FOO-1', 'summary': 'Fake bug 1', 'status': 'New'}, @@ -226,7 +225,6 @@ async def test_run_with_specified_issues(self, _search_for_jira_issues: Mock, _u }, } ) - jira_client = runtime.bug_trackers.return_value._client found_issues = [ MagicMock(spec=Issue, **{ "key": "FOO-1", "fields": MagicMock(), @@ -252,7 +250,7 @@ async def test_run_with_specified_issues(self, _search_for_jira_issues: Mock, _u cli = FindBugsKernelClonesCli( runtime=runtime, trackers=[], issues=["FOO-1", "FOO-2", "FOO-3"], move=True, comment=True, dry_run=False) await cli.run() - _update_jira_issues.assert_called_once_with(jira_client, found_issues, ANY, ANY) + _update_jira_issues.assert_called_once() expected_report = { 'jira_issues': [ {'key': 'FOO-1', 'summary': 'Fake bug 1', 'status': 'New'},