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

Method no_response

tests/conftest.py:67–73  ·  view source on GitHub ↗

Instructs the mock server to ignore N requests from this session, giving no response.

(self, count)

Source from the content-addressed store, hash-verified

65 self.proxy = config.proxy_url
66
67 def no_response(self, count):
68 """Instructs the mock server to ignore N requests from this
69 session, giving no response."""
70 if self.is_mock_server:
71 self.headers["mock-server-session-no-response-count"] = str(
72 count
73 )
74
75 def respond_with_429(self, count):
76 """Instructs the mock server to reject N /translate requests from

Callers 2

test_usage_no_responseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected