Files
VoxVera/tests/test_cli.py
2025-06-19 11:58:39 -04:00

14 lines
296 B
Python

import os, sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from voxvera.cli import main
import pytest
def test_help(capsys):
with pytest.raises(SystemExit):
main(["-h"])
captured = capsys.readouterr()
assert "usage:" in captured.out