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 click.testing import CliRunner from ss_python.cli import cli def test_cli() -> None: """Test for cli.""" runner = CliRunner() result = runner.invoke(cli) assert result.exit_code == 0 assert "Usage" in result.output def test_cli_run() -> None: """Test for run subcommand of the cli.""" runner = CliRunner() result = runner.invoke(cli, "run") assert result.exit_code == 0 assert not result.output |