Skip to content

Commit

Permalink
fix[ci]: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jones-dev committed Sep 17, 2024
1 parent 3127a09 commit dca0d80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 330,11 @@ def _build_test_response():
response = Mock(spec=Response)
response.status_code = 200
response.text = (
'{"translations": [{"detected_source_language": "EN", '
'"text": "protonstråle"}]}'
'{"translations": [{'
'"detected_source_language": "EN", '
'"text": "protonstråle", '
f'"billed_characters": {len(example_text["EN"])}'
"}]}"
)
response.headers = {
"Content-Type": "application/json",
Expand Down

0 comments on commit dca0d80

Please sign in to comment.