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

Function test_glossary_delete

tests/test_multilingual_glossary.py:342–356  ·  view source on GitHub ↗
(deepl_client, multilingual_glossary_manager)

Source from the content-addressed store, hash-verified

340
341
342def test_glossary_delete(deepl_client, multilingual_glossary_manager):
343 glossary_dicts = [
344 MultilingualGlossaryDictionaryEntries("EN", "DE", {"Hello": "Hallo"})
345 ]
346 with multilingual_glossary_manager(glossary_dicts) as created_glossary:
347 deepl_client.delete_multilingual_glossary(created_glossary)
348 with pytest.raises(deepl.GlossaryNotFoundException):
349 deepl_client.get_multilingual_glossary(
350 created_glossary.glossary_id
351 )
352
353 with pytest.raises(deepl.DeepLException):
354 deepl_client.delete_multilingual_glossary(INVALID_GLOSSARY_ID)
355 with pytest.raises(deepl.GlossaryNotFoundException):
356 deepl_client.delete_multilingual_glossary(NONEXISTENT_GLOSSARY_ID)
357
358
359def test_glossary_dictionary_delete(

Callers

nothing calls this directly

Tested by

no test coverage detected