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

Function test_proxy_usage

tests/test_general.py:235–245  ·  view source on GitHub ↗
(
    server,
    translator_with_random_auth_key,
    translator_with_random_auth_key_and_proxy,
)

Source from the content-addressed store, hash-verified

233
234@needs_mock_proxy_server
235def test_proxy_usage(
236 server,
237 translator_with_random_auth_key,
238 translator_with_random_auth_key_and_proxy,
239):
240 server.expect_proxy()
241
242 translator_with_random_auth_key_and_proxy.get_usage()
243
244 with pytest.raises(deepl.DeepLException):
245 translator_with_random_auth_key.get_usage()
246
247
248@needs_mock_server

Callers

nothing calls this directly

Calls 2

expect_proxyMethod · 0.80
get_usageMethod · 0.80

Tested by

no test coverage detected