(
server,
translator_with_random_auth_key,
translator_with_random_auth_key_and_proxy,
)
| 233 | |
| 234 | @needs_mock_proxy_server |
| 235 | def 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 |
nothing calls this directly
no test coverage detected