diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_tutorial/__init__.py b/tests/test_tutorial/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_tutorial/test_first_steps/__init__.py b/tests/test_tutorial/test_first_steps/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_tutorial/test_first_steps/test_tutorial001.py b/tests/test_tutorial/test_first_steps/test_tutorial001.py new file mode 100644 index 0000000..3c7c78d --- /dev/null +++ b/tests/test_tutorial/test_first_steps/test_tutorial001.py @@ -0,0 +1,13 @@ +from typer.testing import CliRunner +import typer + +from first_steps.tutorial001 import main + +runner = CliRunner() + + +def test_cli(): + app = typer.Typer() + app.command()(main) + result = runner.invoke(app, []) + assert result.output == "Hello World\n"