tests.cli_test

tests/cli_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Test for cli."""

from typer.testing import CliRunner

from ss_python.cli import app

runner = CliRunner()


def test_cli() -> None:
    """Test for cli."""
    result = runner.invoke(app)
    assert result.exit_code == 0
    assert "Usage" in result.output


def test_cli_run() -> None:
    """Test for run subcommand of the cli."""
    result = runner.invoke(app, "run")
    assert result.exit_code == 0
    assert not result.output