10 lines
238 B
Python
10 lines
238 B
Python
import pytest
|
|
from helpers import cli
|
|
|
|
|
|
def test_help(capsys: pytest.CaptureFixture) -> None:
|
|
with pytest.raises(SystemExit):
|
|
cli.run(["--help"])
|
|
captured = capsys.readouterr()
|
|
assert captured.out.startswith("usage:")
|