Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Oct 21, 2024
1 parent 98e4a10 commit e1fbc6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/api/test_guards.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,8 @@ def test_openai_v1_chat_completions__call(mocker):
)

mock___call__ = mocker.patch.object(MockGuardStruct, "__call__")
future = asyncio.Future()
future.set_result(mock_outcome)
mock___call__.return_value = future

mock___call__.return_value = mock_outcome

mock_from_dict = mocker.patch("guardrails_api.api.guards.Guard.from_dict")
mock_from_dict.return_value = mock_guard
Expand Down

0 comments on commit e1fbc6a

Please sign in to comment.