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

Method set_doc_queue_time

tests/conftest.py:111–117  ·  view source on GitHub ↗

Instructs the mock server to queue documents for specified time before translation.

(self, milliseconds)

Source from the content-addressed store, hash-verified

109 self.headers["mock-server-session-doc-failure"] = str(count)
110
111 def set_doc_queue_time(self, milliseconds):
112 """Instructs the mock server to queue documents for specified time
113 before translation."""
114 if self.is_mock_server:
115 self.headers["mock-server-session-doc-queue-time"] = str(
116 milliseconds
117 )
118
119 def set_doc_translate_time(self, milliseconds):
120 """Instructs the mock server to translate documents within

Calls

no outgoing calls

Tested by

no test coverage detected