compose-viz/tests/test_version.py

13 lines
291 B
Python
Raw Permalink 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()
2022-05-18 18:41:08 +02:00
def test_version() -> None:
2022-05-07 18:42:14 +02:00
result = runner.invoke(cli.app, ["--version"])
assert result.exit_code == 0
assert f"{__app_name__} {__version__}\n" in result.stdout