Download tests/unit/test_cli.py from minhhien0811/agentic-search: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/minhhien0811/agentic-search/resolve/main/tests/unit/test_cli.py
- Command line
-
hf download hf://minhhien0811/agentic-search/tests/unit/test_cli.py
-
curl -L -o test_cli.py https://huggingface.co/minhhien0811/agentic-search/resolve/main/tests/unit/test_cli.py
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 | |