MCPcopy Create free account
hub / github.com/DeepL/deepl-python / check_result

Function check_result

tests/test_translate_text.py:50–52  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

48
49def test_source_lang(translator):
50 def check_result(result):
51 assert result.text == example_text["DE"]
52 assert result.detected_source_lang == "EN"
53
54 check_result(
55 translator.translate_text(example_text["EN"], target_lang="DE")

Callers 2

test_source_langFunction · 0.85
test_target_langFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected