Orchestrata Ultimate › Tests › Reference › scripts › test_semantic_search
Tests reference — tests/scripts/test_semantic_search.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_semantic_search.py
source · 12 tests · 316 lines
Tests for scripts/semantic_search.py — the audit #6 cheap-retrieval CLI.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_parse_args_defaults |
115 | |
| function | test_parse_args_top_k_and_json |
122 | |
| function | test_print_results_json |
128 | |
| function | test_print_results_text_no_results |
145 | |
| function | test_print_results_text_formats_snippet |
151 | |
| function | test_build_config_defaults_to_codestral_chunk_label |
171 | |
| function | test_run_search_requires_api_key |
179 | The backend is NAMED: only the hosted one needs an account, so an |
| function | test_run_search_against_live_graph |
189 | Real end-to-end hybrid search against the live semantic graph. |
| function | test_load_dotenv_loads_a_key_missing_from_the_environment |
213 | Real .env read: pop a key known to live in the repo's .env, call |
| function | test_run_search_reports_memgraph_connect_failure |
253 | A real (dead-address) connection failure — no live server, no double. |
| function | test_main_async_runs_the_full_cli_wiring |
261 | Drives _load_dotenv -> _parse_args -> run_search -> print |
| function | test_main_sync_entrypoint_wraps_main_async |
290 | main() wraps _main_async in asyncio.run — must run from a |