(translator, glossary_manager)
| 148 | |
| 149 | |
| 150 | def 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 |
nothing calls this directly
no test coverage detected