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

Function test_glossary_create_large

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

Source from the content-addressed store, hash-verified

82
83
84def test_glossary_create_large(translator, glossary_manager):
85 source_lang = "EN"
86 target_lang = "DE"
87 entries = {f"Source-${i}": f"Target-${i}" for i in range(10000)}
88 with glossary_manager(
89 source_lang=source_lang, target_lang=target_lang, entries=entries
90 ) as created_glossary:
91 assert created_glossary.entry_count == len(entries)
92
93 retrieved_entries = translator.get_glossary_entries(created_glossary)
94 assert entries == retrieved_entries
95
96
97def test_glossary_get(translator, glossary_manager):

Callers

nothing calls this directly

Calls 2

glossary_managerFunction · 0.85
get_glossary_entriesMethod · 0.80

Tested by

no test coverage detected