agentic-search / tests /unit /test_cli.py
minhhien0811's picture
Publish code and Fair Protocol 500 results
ec1ecb9 verified
Raw
History Blame Contribute Delete
538 Bytes
from typer.testing import CliRunner
from agentic_search.cli import app
runner = CliRunner()
def test_version_is_available_without_a_subcommand() -> None:
result = runner.invoke(app, ["--version"])
assert result.exit_code == 0
assert result.stdout.strip() == "0.4.0"
def test_data_namespace_exposes_real_dataset_commands() -> None:
result = runner.invoke(app, ["data", "--help"])
assert result.exit_code == 0
assert "download-hotpot" in result.stdout
assert "build-benchmark-manifests" in result.stdout