Enable multi-api-key secrets v2
This commit is contained in:
parent
9dfbc5efa4
commit
0049067919
|
@ -19,7 +19,7 @@ class TestSolveIssueInRepository:
|
||||||
self.issue_description = 'This is a test issue'
|
self.issue_description = 'This is a test issue'
|
||||||
self.issue_number = '123'
|
self.issue_number = '123'
|
||||||
|
|
||||||
@patch('aider_gitea.secrets.llm_api_key', return_value='fake-api-key')
|
@patch('aider_gitea.secrets.llm_api_keys', return_value='fake-api-key')
|
||||||
@patch('aider_gitea.run_cmd')
|
@patch('aider_gitea.run_cmd')
|
||||||
@patch('aider_gitea.push_changes')
|
@patch('aider_gitea.push_changes')
|
||||||
@patch('subprocess.run')
|
@patch('subprocess.run')
|
||||||
|
@ -54,7 +54,7 @@ class TestSolveIssueInRepository:
|
||||||
assert mock_run_cmd.call_count >= 8 # Verify all expected commands were run
|
assert mock_run_cmd.call_count >= 8 # Verify all expected commands were run
|
||||||
mock_push_changes.assert_called_once()
|
mock_push_changes.assert_called_once()
|
||||||
|
|
||||||
@patch('aider_gitea.secrets.llm_api_key', return_value='fake-api-key')
|
@patch('aider_gitea.secrets.llm_api_keys', return_value='fake-api-key')
|
||||||
@patch('aider_gitea.run_cmd')
|
@patch('aider_gitea.run_cmd')
|
||||||
@patch('aider_gitea.push_changes')
|
@patch('aider_gitea.push_changes')
|
||||||
@patch('subprocess.run')
|
@patch('subprocess.run')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user