MCPcopy Create free account
hub / github.com/DeepL/deepl-python / test_glossary_delete

Function test_glossary_delete

tests/test_glossary.py:150–159  ·  view source on GitHub ↗
(translator, glossary_manager)

Source from the content-addressed store, hash-verified

148
149
150def test_glossary_delete(translator, glossary_manager):
151 with glossary_manager() as created_glossary:
152 translator.delete_glossary(created_glossary)
153 with pytest.raises(deepl.GlossaryNotFoundException):
154 translator.get_glossary(created_glossary.glossary_id)
155
156 with pytest.raises(deepl.DeepLException):
157 translator.delete_glossary(INVALID_GLOSSARY_ID)
158 with pytest.raises(deepl.GlossaryNotFoundException):
159 translator.delete_glossary(NONEXISTENT_GLOSSARY_ID)
160
161
162@needs_real_server

Callers

nothing calls this directly

Calls 3

glossary_managerFunction · 0.85
delete_glossaryMethod · 0.80
get_glossaryMethod · 0.80

Tested by

no test coverage detected