pass-gen/app/main_test.py
2021-07-05 18:53:02 +02:00

10 lines
225 B
Python

from typer.testing import CliRunner
from .main import app
runner = CliRunner()
def test_cli_print_password() -> None:
result = runner.invoke(app)
assert result.exit_code == 0
assert "2yW4AcqG" in result.stdout