(
translator,
server,
example_document_path,
example_document_translation,
output_document_path,
)
| 56 | |
| 57 | @needs_mock_server |
| 58 | def 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 |
nothing calls this directly
no test coverage detected