We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3127a09 commit dca0d80Copy full SHA for dca0d80
tests/test_general.py
@@ -330,8 +330,11 @@ def _build_test_response():
330
response = Mock(spec=Response)
331
response.status_code = 200
332
response.text = (
333
- '{"translations": [{"detected_source_language": "EN", '
334
- '"text": "protonstråle"}]}'
+ '{"translations": [{'
+ '"detected_source_language": "EN", '
335
+ '"text": "protonstråle", '
336
+ f'"billed_characters": {len(example_text["EN"])}'
337
+ "}]}"
338
)
339
response.headers = {
340
"Content-Type": "application/json",
0 commit comments