Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertrand committed Jan 2, 2025
1 parent bd1a518 commit 76b9fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_chat/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_post_search_agent_endpoint(
user_message = "Do you have any good physics courses?"
temperature = 0.1
system_prompt = "Answer this question as best you can"
mock_agent = mocker.patch("ai_chat.views.SearchAgent", autospec=True)
mock_agent = mocker.patch("ai_chat.agents.SearchAgent", autospec=True)
mock_agent.return_value.get_completion = mocker.Mock(
return_value=iter(expected_answer)
)
Expand Down

0 comments on commit 76b9fad

Please sign in to comment.