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

Method test_version

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

Source from the content-addressed store, hash-verified

22 assert main([]) == EXIT.DEPENDENCY_MISSING
23
24 def test_version(self, capsys):
25 with pytest.raises(SystemExit) as exc:
26 main(["--version"])
27 assert exc.value.code == 0
28 assert "videocaptioner" in capsys.readouterr().out
29
30 def test_invalid_subcommand(self):
31 with pytest.raises(SystemExit) as exc:

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected