compose-viz/tests/test_version.py

13 lines
283 B
Python
Raw Normal View History

2022-05-07 18:42:14 +02:00
from typer.testing import CliRunner
2022-05-18 17:28:18 +02:00
from compose_viz import __app_name__, __version__, cli
2022-05-07 18:42:14 +02:00
runner = CliRunner()
def test_version():
result = runner.invoke(cli.app, ["--version"])
assert result.exit_code == 0
assert f"{__app_name__} {__version__}\n" in result.stdout