Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno committed Jul 24, 2024
1 parent f7e2e34 commit 7024e9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_elevenlabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ async def test_get_voices(client):
assert voices == mock_response["voices"]

# Assert that the request was made with the correct URL and headers
assert respx.calls[0].request.url == "https://api.elevenlabs.io/v1/voices"
assert (
respx.calls[0].request.url
== "https://api.elevenlabs.io/v1/voices?show_legacy=true"
)
assert respx.calls[0].request.headers["xi-api-key"] == client._api_key

# Assert that the client's _voices attribute is updated correctly
Expand Down

0 comments on commit 7024e9d

Please sign in to comment.