"""Test the tgulls-hello CLI entry point."""

import subprocess
import sys


def test_cli_prints_hello():
    """Running tgulls-hello prints the expected greeting."""
    result = subprocess.run(
        [sys.executable, "-m", "tgulls_hello.cli"],
        capture_output=True,
        text=True,
    )
    assert result.returncode == 0
    assert result.stdout.strip() == "Hello, PyPI!"
