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

Function test_translate_document_with_waiting

tests/test_translate_document.py:58–73  ·  view source on GitHub ↗
(
    translator,
    server,
    example_document_path,
    example_document_translation,
    output_document_path,
)

Source from the content-addressed store, hash-verified

56
57@needs_mock_server
58def test_translate_document_with_waiting(
59 translator,
60 server,
61 example_document_path,
62 example_document_translation,
63 output_document_path,
64):
65 server.set_doc_queue_time(2000)
66 server.set_doc_translate_time(2000)
67
68 translator.translate_document_from_filepath(
69 example_document_path,
70 output_path=output_document_path,
71 **default_lang_args,
72 )
73 assert example_document_translation == output_document_path.read_text()
74
75
76@needs_mock_server

Callers

nothing calls this directly

Calls 3

set_doc_queue_timeMethod · 0.80

Tested by

no test coverage detected