(server)
| 366 | |
| 367 | |
| 368 | def test_invalid_auth_key(server): |
| 369 | translator = deepl.Translator("invalid", server_url=server.server_url) |
| 370 | with pytest.raises( |
| 371 | deepl.AuthorizationException, match=r".*Authorization failure.*" |
| 372 | ): |
| 373 | translator.translate_text("Hello, world!", target_lang="DE") |
| 374 | |
| 375 | |
| 376 | def test_empty_text(translator): |
nothing calls this directly
no test coverage detected