12 lines
291 B
Python
12 lines
291 B
Python
from typer.testing import CliRunner
|
|
|
|
from compose_viz import __app_name__, __version__, cli
|
|
|
|
runner = CliRunner()
|
|
|
|
|
|
def test_version() -> None:
|
|
result = runner.invoke(cli.app, ["--version"])
|
|
|
|
assert result.exit_code == 0
|
|
assert f"{__app_name__} {__version__}\n" in result.stdout
|