Skip to content
Myr

:white_check_mark: Add first test, scaffold testing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent eff740c · Browse files · 4 files+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+13 added−0 removed

  • tests:+13 added−0 removed

4 files+13 added−0 removed

added:tests/test_tutorial/test_first_steps/__init__.py
added:tests/test_tutorial/test_first_steps/test_tutorial001.py+13 added
1from typer.testing import CliRunner2import typer34from first_steps.tutorial001 import main56runner = CliRunner()789def test_cli():10 app = typer.Typer()11 app.command()(main)12 result = runner.invoke(app, [])13 assert result.output == "Hello World\n"
added:tests/test_tutorial/__init__.py
added:tests/__init__.py