compose-viz/tests/test_cli.py

17 lines
351 B
Python
Raw Normal View History

2022-05-16 18:57:14 +02:00
import os
2022-05-07 18:42:14 +02:00
from typer.testing import CliRunner
from compose_viz import cli
runner = CliRunner()
def test_cli():
input_path = "tests/in/000001.yaml"
result = runner.invoke(cli.app, [input_path])
assert result.exit_code == 0
assert f"Successfully parsed {input_path}\n" in result.stdout
2022-05-16 18:57:14 +02:00
assert os.path.exists("compose-viz.png")