steam-backlog-enforcer/steam_installer/tests/test_cli_credit.py
Krzysztof kuhy Rudnicki a76e726e36 Merge steam-game-installer into the repo
The installer ships as the steam_installer package beside
steam_backlog_enforcer, with its tests, docs and Proton lock. The
enforcer's fast install now starts the installer from this checkout.

Both appinfo.vdf readers share one key-value decoder
(steam_installer.appinfo_kv), and the duplicated test fixtures and
helpers are folded into conftest and _cli_helpers so the whole-tree
duplicate-code check is clean. check_requirements_sync treats sibling
packages as first-party.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZCxnNWLtpVwFLVk9w
2026-11-22 20:25:39 +01:00

19 lines
540 B
Python

"""``--help`` ends on kuhy's shared credit line (kuhy_credit, kuhyx/utils)."""
from __future__ import annotations
from kuhy_credit import URL, credit_line
import pytest
from steam_installer import cli
def test_help_ends_with_the_kuhy_credit(capsys: pytest.CaptureFixture[str]) -> None:
"""Help ends with the kuhy credit."""
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