mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-22 23:22:18 +01:00
15 lines
425 B
Python
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
|