MCPcopy
hub / github.com/WEIFENG2333/VideoCaptioner / test_help

Method test_help

tests/test_cli/test_parser.py:35–47  ·  view source on GitHub ↗
(self, capsys)

Source from the content-addressed store, hash-verified

33 assert exc.value.code == 2
34
35 def test_help(self, capsys):
36 with pytest.raises(SystemExit) as exc:
37 main(["--help"])
38 assert exc.value.code == 0
39 out = capsys.readouterr().out
40 assert "transcribe" in out
41 assert "gui" in out
42 assert "subtitle" in out
43 assert "synthesize" in out
44 assert "process" in out
45 assert "download" in out
46 assert "config" in out
47 assert "doctor" in out
48
49 def test_gui_command_reports_missing_gui_dependencies(self, monkeypatch):
50 import builtins

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected