Files
clan-core/pkgs/clan-cli/tests/test_cli.py
2024-07-10 18:14:06 +07:00

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:")