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

Function test_glossary_get

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

Source from the content-addressed store, hash-verified

367
368
369def test_glossary_get(translator, runner, glossary_manager):
370 with glossary_manager() as created_glossary:
371 created_id = created_glossary.glossary_id
372
373 result = runner.invoke(main_function, f"-vv glossary get {created_id}")
374 print(result.output)
375 assert (
376 result.exit_code == 0
377 ), f"exit: {result.exit_code}\n {result.output}"
378 assert created_id in result.output
379 assert created_glossary.name in result.output
380
381
382def test_glossary_list(translator, runner, glossary_manager):

Callers

nothing calls this directly

Calls 1

glossary_managerFunction · 0.85

Tested by

no test coverage detected