Skip to content

Commit dca0d80

Browse files
fix[ci]: fix test case
1 parent 3127a09 commit dca0d80

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_general.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,11 @@ def _build_test_response():
330330
response = Mock(spec=Response)
331331
response.status_code = 200
332332
response.text = (
333-
'{"translations": [{"detected_source_language": "EN", '
334-
'"text": "protonstråle"}]}'
333+
'{"translations": [{'
334+
'"detected_source_language": "EN", '
335+
'"text": "protonstråle", '
336+
f'"billed_characters": {len(example_text["EN"])}'
337+
"}]}"
335338
)
336339
response.headers = {
337340
"Content-Type": "application/json",

0 commit comments

Comments
 (0)