Orchestrata Ultimate › Tests › Reference › scripts › test_ast_live_sync_main

Tests reference — tests/scripts/test_ast_live_sync_main.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_ast_live_sync_main.py

source · 23 tests · 513 lines

Branch-coverage tests for scripts/ast_live_sync.py — the CLI entrypoint

Covers: knowledge_graph.canonical_schema, knowledge_graph.sync

Kind Name Line Description
function test_source_root_is_the_repo_root_joined_with_the_source_dir 145
function test_a_cache_without_a_root_path_is_accepted 151 A cache that parses but carries no root_path has nothing to
function test_import_time_path_bootstrap_executes_when_the_paths_are_absent 162 The module header inserts src/ and the repo root onto sys.path only
function test_log_outcome_reports_a_quiet_pass 180
function test_log_outcome_reports_changes_and_the_fallback_marker 186
function test_resolve_target_uri_prefers_the_explicit_argument 195
function test_make_syncer_returns_a_connected_syncer 202
function test_destination_check_fails_on_an_empty_graph 216 A warm cache over an EMPTY destination is the exact false green this
function test_destination_check_fails_below_the_coverage_floor 226 3 modules in the graph against a local AST of 10 is 30% — below the
function test_destination_check_passes_when_the_graph_holds_the_tree 239
function test_measure_slo_passes_within_a_generous_budget 256
function test_measure_slo_fails_when_the_budget_is_missed 268 A zero-second budget is unmissable: any real leg exceeds it.
function test_watch_syncs_a_real_save_and_stops_cleanly 283 End to end through the real watcher: a save under the watch dir is
function test_watch_survives_a_failed_pass_and_keeps_watching 311 A watcher that dies on one bad pass stops being live. A closed graph
function test_main_refuses_to_run_without_any_graph_address 344
function test_main_rejects_a_missing_repo_root 349
function test_main_rejects_a_missing_source_dir 356
function test_main_refuses_to_run_with_no_declared_roots 364 No declaration means NO roots, not the old src-only literal: that
function test_main_rejects_a_missing_explicit_extra_root 377
function test_main_once_populates_the_destination 394 The full CLI leg: parse args, connect, sync once, verify the graph
function test_main_once_fails_over_an_unpopulated_destination 425 A project the graph has never held, synced --once, populates it; a
function test_main_measure_runs_the_slo_leg 458
function test_main_watch_raises_for_a_missing_watch_directory 488 An explicit --watch that names no real directory fails loudly out of