Add first test, scaffold testing

This commit is contained in:
Sebastián Ramírez 2019-12-24 15:35:53 +01:00
parent eff740c844
commit a3d337f98b
4 changed files with 13 additions and 0 deletions

0
tests/__init__.py Normal file
View file

View file

View file

@ -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"