fix: Adjust test_daemon_mode to accept correct number of arguments

This commit is contained in:
Jon Michael Aanes (aider) 2025-04-13 17:32:24 +02:00
parent 87c42fe8fb
commit 2cb5f5c6c9

View File

@ -9,7 +9,7 @@ class TestDaemonMode(unittest.TestCase):
@patch('aider_gitea.__main__.GiteaClient') @patch('aider_gitea.__main__.GiteaClient')
@patch('aider_gitea.__main__.SeenIssuesDB') @patch('aider_gitea.__main__.SeenIssuesDB')
@patch('aider_gitea.__main__.process_issue') @patch('aider_gitea.__main__.process_issue')
def test_daemon_mode(self, mock_process_issue, MockSeenIssuesDB, MockGiteaClient): def test_daemon_mode(self, mock_process_issue, MockSeenIssuesDB, MockGiteaClient, mock_gitea_token):
mock_args = MagicMock() mock_args = MagicMock()
mock_args.daemon = True mock_args.daemon = True
mock_args.gitea_url = "http://example.com" mock_args.gitea_url = "http://example.com"