Instructs the mock server to translate documents within specified time.
(self, milliseconds)
| 117 | ) |
| 118 | |
| 119 | def set_doc_translate_time(self, milliseconds): |
| 120 | """Instructs the mock server to translate documents within |
| 121 | specified time.""" |
| 122 | if self.is_mock_server: |
| 123 | self.headers["mock-server-session-doc-translate-time"] = str( |
| 124 | milliseconds |
| 125 | ) |
| 126 | |
| 127 | def expect_proxy(self, value: bool = True): |
| 128 | """Instructs the mock server to only accept requests via the |
no outgoing calls
no test coverage detected