Files
git-insights-cli/tests/test_cli.py
7000pctAUTO 0bea9d40bb
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled
Add test fixtures and unit tests for CLI, models, and formatters
2026-02-01 08:29:47 +00:00

32 lines
944 B
Python

from click.testing import CliRunner
from src.cli import main
class TestCLI:
"""Test CLI commands."""
def test_main_help(self):
"""Test main command help."""
runner = CliRunner()
result = runner.invoke(main, ["--help"])
assert result.exit_code == 0
assert "Git Insights" in result.output
def test_analyze_help(self):
"""Test analyze command help."""
runner = CliRunner()
result = runner.invoke(main, ["analyze", "--help"])
assert result.exit_code == 0
def test_dashboard_help(self):
"""Test dashboard command help."""
runner = CliRunner()
result = runner.invoke(main, ["dashboard", "--help"])
assert result.exit_code == 0
def test_export_help(self):
"""Test export command help."""
runner = CliRunner()
result = runner.invoke(main, ["export", "--help"])
assert result.exit_code == 0