(self, capsys)
| 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: |