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

Function test_invalid_authkey

tests/test_general.py:94–97  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

92
93
94def test_invalid_authkey(server):
95 translator = deepl.Translator("invalid", server_url=server.server_url)
96 with pytest.raises(deepl.exceptions.AuthorizationException):
97 translator.get_usage()
98
99
100def test_invalid_server_url(server):

Callers

nothing calls this directly

Calls 1

get_usageMethod · 0.95

Tested by

no test coverage detected