Orchestrata Ultimate › Tests › Reference › scripts › test_sync_architecture_to_graph

Tests reference — tests/scripts/test_sync_architecture_to_graph.py

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

Prose pending.

tests/scripts/test_sync_architecture_to_graph.py

source · 21 tests · 1033 lines

Tests for scripts/sync_architecture_to_graph.py -- the thin CLI over

Covers: knowledge_graph.architecture_writer, knowledge_graph.canonical_schema

Kind Name Line Description
function test_load_dotenv_is_a_noop_when_the_env_file_is_missing 158
function test_load_dotenv_loads_a_key_missing_from_the_environment 168
function test_dry_run_never_touches_neo4j 181 --dry-run must return 0 and print a summary without ever constructing
function test_sync_data_shapes_are_internally_consistent 196 Every component invariant name must exist in CONSTRAINTS, and every
function test_main_syncs_a_test_unique_architecture_into_neo4j 213 Full real write against a test-unique project slug (never touching the
function test_dry_run_seed_lists_the_seed_step_and_writes_nothing 308 --dry-run --seed must return 0, print the seed step (counts drawn
function test_seed_writes_waf_pillars_and_cloud_services_before_sync 325 --seed calls ArchitectureWriter.seed_reference_data() (the real,
function test_main_never_touches_the_real_orchestrata_ultimate_architecture_node 382 Regression pin: any test run under a different PROJECT slug must never
function test_dry_run_adrs_missing_file_prints_skip_and_writes_nothing 460
function test_dry_run_adrs_prints_would_sync_counts_and_touches_no_neo4j 473 --dry-run --adrs must count the real 2 fixture ADRs + the fixed 2
function test_main_adrs_missing_file_skips_without_failing 486 A real (non-dry-run) invocation with a missing --adrs path prints
function test_main_adrs_syncs_real_project_scoped_adrs_into_neo4j 536 --adrs graduates the corpus into ArchitectureDecision nodes
function test_sync_adrs_reports_body_drift_and_keeps_syncing_the_rest 706 sync_adrs() wraps each ADR's upsert in its own try/except catching
function test_adr_exit_code_is_nonzero_only_when_errors_are_present 742
function test_adr_sync_report_to_dict_and_summary_line 750
function test_main_adrs_reports_body_drift_for_an_accepted_adr_and_still_exits_zero 814 Reproduces the measured failure: an Accepted ArchitectureDecision
function test_retire_legacy_refuses_ids_not_starting_with_orchestrata_ultimate 891 --retire-legacy refuses any id that does not start with orchestrata-ultimate:.
function test_retire_legacy_refuses_missing_nodes 899 --retire-legacy exits non-zero when the target node does not exist.
function test_retire_legacy_refuses_invalid_label 912 --retire-legacy refuses labels that are not canonical schema labels.
function test_retire_legacy_deletes_the_named_node_and_its_edges 923 --retire-legacy DETACH DELETEs the named node and its edges, leaving nothing.
function test_retire_legacy_default_run_does_not_delete_anything 982 A default sync() run (no --retire-legacy) leaves everything intact.