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

Method set_doc_translate_time

tests/conftest.py:119–125  ·  view source on GitHub ↗

Instructs the mock server to translate documents within specified time.

(self, milliseconds)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected