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

Function test_invalid_server_url

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

Source from the content-addressed store, hash-verified

98
99
100def test_invalid_server_url(server):
101 translator = deepl.Translator("invalid", server_url="http:/api.deepl.com")
102 with pytest.raises(deepl.exceptions.DeepLException):
103 translator.get_usage()
104
105
106def test_usage(translator):

Callers

nothing calls this directly

Calls 1

get_usageMethod · 0.95

Tested by

no test coverage detected