Skip to content

Commit

Permalink
monkeypatch.setenv('OPENAI_API_KEY', 'secret')
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion committed Oct 4, 2023
1 parent d0c8db2 commit 0536ec9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pilot/helpers/agents/test_Developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def test_test_code_changes_invalid_json(self, mock_get_saved_user_input,
mock_requests_post,
mock_save,
mock_get_saved_step,
mock_execute):
mock_execute,
monkeypatch):
# Given
monkey = None
convo = AgentConvo(self.developer)
Expand Down Expand Up @@ -167,6 +168,7 @@ def generate_response(*args, **kwargs):
return response

mock_requests_post.side_effect = generate_response
monkeypatch.setenv('OPENAI_API_KEY', 'secret')

mock_questionary = MockQuestionary([''])

Expand Down

0 comments on commit 0536ec9

Please sign in to comment.