steam-backlog-enforcer/_installer_import/tests/test_cli_credit.py
2026-11-21 08:55:44 +01:00

15 lines
425 B
Python

"""``--help`` ends on kuhy's shared credit line (kuhy_credit, kuhyx/utils)."""
import pytest
from kuhy_credit import URL, credit_line
from steam_installer import cli
def test_help_ends_with_the_kuhy_credit(capsys):
with pytest.raises(SystemExit) as exc:
cli.main(["--help"])
assert exc.value.code == 0
out = capsys.readouterr().out
assert out.rstrip().endswith(credit_line())
assert URL in out