We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1328ee8 commit 51fd214Copy full SHA for 51fd214
tests/test_glossary.py
@@ -65,6 +65,19 @@ def test_glossary_create_invalid(
65
)
66
67
68
+def test_glossary_create_large(translator, glossary_manager):
69
+ source_lang = "EN"
70
+ target_lang = "DE"
71
+ entries = {f"Source-${i}": f"Target-${i}" for i in range(10000)}
72
+ with glossary_manager(
73
+ source_lang=source_lang, target_lang=target_lang, entries=entries
74
+ ) as created_glossary:
75
+ assert created_glossary.entry_count == len(entries)
76
+
77
+ retrieved_entries = translator.get_glossary_entries(created_glossary)
78
+ assert entries == retrieved_entries
79
80
81
def test_glossary_get(translator, glossary_manager):
82
source_lang = "EN"
83
target_lang = "DE"
0 commit comments