Orchestrata Ultimate › Tests › Reference › scripts › test_bootstrap_graphs
Tests reference — tests/scripts/test_bootstrap_graphs.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_bootstrap_graphs.py
source · 27 tests · 420 lines
Tests for scripts/bootstrap_graphs.py — the Phase R4 graph-bootstrap CLI.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_no_flags_prints_usage_and_nonzero |
94 | |
| function | test_plan_kg_lists_expected_steps_only |
109 | |
| function | test_neo4j_legacy_alias_warns_and_behaves_like_kg |
121 | Regression for F7: --neo4j is a deprecated alias for --kg — |
| function | test_plan_memgraph_lists_ingest_step_only |
134 | |
| function | test_plan_all_combines_both_chains |
143 | |
| function | test_plan_bare_defaults_to_both_graphs |
152 | No scope flag alongside --plan means "both", same as --all --plan. |
| function | test_plan_steps_are_ordered_kg_schema_first |
161 | |
| function | test_resolve_targets_scoping |
171 | |
| function | test_check_memgraph_against_live_graph |
194 | |
| function | test_check_kg_against_live_graph_reports_drift_or_clean |
204 | |
| function | test_check_all_matches_live_graphs_exit_contract |
219 | --all --check must exit 0 on an already-bootstrapped pair of graphs, |
| function | test_check_bare_defaults_to_both_graphs |
235 | |
| function | test_check_kg_unreachable_port_is_reported_as_drift |
243 | A genuinely-unreachable KG (real closed port, not a double) must |
| function | test_check_memgraph_unreachable_port_is_reported |
261 | |
| function | test_effective_env_explicit_value_wins_over_dotenv |
272 | |
| function | test_effective_env_fills_gaps_from_dotenv |
277 | |
| function | test_effective_env_defaults_to_os_environ_plus_dotenv |
292 | |
| function | test_run_steps_all_succeed_returns_zero |
309 | |
| function | test_run_steps_aborts_on_hard_failure_and_skips_remaining |
314 | |
| function | test_run_steps_optional_failure_continues_to_next_step |
326 | |
| function | test_run_steps_skips_step_when_requires_path_missing |
337 | |
| function | test_main_execute_kg_only_uses_injected_steps |
355 | |
| function | test_main_execute_memgraph_only_uses_injected_steps |
362 | |
| function | test_main_execute_all_runs_both_injected_chains |
371 | |
| function | test_main_execute_all_aborts_before_memgraph_on_kg_failure |
384 | |
| function | test_print_plan_tags_optional_and_requires_steps |
395 | |
| function | test_plan_kg_architecture_step_ingests_the_repo_adr_corpus |
407 | D5: the bootstrap's architecture step carries --repo-adrs docs/adr |