feat: add greet CLI with tests

This commit is contained in:
2026-03-22 10:28:59 -06:00
commit 73b0bb8566
8 changed files with 180 additions and 0 deletions

0
tests/__init__.py Normal file
View File

10
tests/test_cli.py Normal file
View File

@@ -0,0 +1,10 @@
from click.testing import CliRunner
from py_demo.cli import main
def test_greet_outputs_hello():
runner = CliRunner()
result = runner.invoke(main, ["greet", "World"])
assert result.exit_code == 0
assert "Hello, World!" in result.output