File size: 307 Bytes
74711df
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from typer.testing import CliRunner

from src.cli import app

runner = CliRunner()


def test_cli_has_commands() -> None:
    result = runner.invoke(app, ["--help"])
    assert result.exit_code == 0
    assert "ingest" in result.output
    assert "index" in result.output
    assert "rank" in result.output