MCPcopy Index your code
hub / github.com/DeepL/deepl-python / expect_proxy

Method expect_proxy

tests/conftest.py:127–133  ·  view source on GitHub ↗

Instructs the mock server to only accept requests via the proxy.

(self, value: bool = True)

Source from the content-addressed store, hash-verified

125 )
126
127 def expect_proxy(self, value: bool = True):
128 """Instructs the mock server to only accept requests via the
129 proxy."""
130 if self.is_mock_server:
131 self.headers["mock-server-session-expect-proxy"] = (
132 "1" if value else "0"
133 )
134
135 return Server()
136

Callers 1

test_proxy_usageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected