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

Function test_glossary_list

tests/test_cli.py:382–393  ·  view source on GitHub ↗
(translator, runner, glossary_manager)

Source from the content-addressed store, hash-verified

380
381
382def test_glossary_list(translator, runner, glossary_manager):
383 with glossary_manager(glossary_name_suffix="1") as g1, glossary_manager(
384 glossary_name_suffix="2"
385 ) as g2, glossary_manager(glossary_name_suffix="3") as g3:
386 glossary_list = [g1, g2, g3]
387
388 result = runner.invoke(main_function, "-vv glossary list")
389 assert (
390 result.exit_code == 0
391 ), f"exit: {result.exit_code}\n {result.output}"
392 for glossary in glossary_list:
393 assert glossary.name in result.output
394
395
396def test_glossary_entries(translator, runner, glossary_manager):

Callers

nothing calls this directly

Calls 1

glossary_managerFunction · 0.85

Tested by

no test coverage detected