Orchestrata Ultimate › Tests › Reference › scripts › test_check_adr_graph_sync

Tests reference — tests/scripts/test_check_adr_graph_sync.py

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

Prose pending.

tests/scripts/test_check_adr_graph_sync.py

source · 23 tests · 708 lines

Tests for scripts/check_adr_graph_sync.py — the read-only three-way

Covers: core.graph.interfaces, core.graph.repository, knowledge_graph.adr_parser, knowledge_graph.architecture_writer

Kind Name Line Description
function test_project 62
function test_load_repo_adrs_reads_directory_and_skips_readme 120
function test_load_repo_adrs_raises_on_malformed_heading 132
function test_load_wiki_adrs_returns_empty_dict_when_file_missing 139
function test_load_wiki_adrs_parses_existing_file 143
function test_titles_agree_is_case_insensitive_and_trims 156
function test_load_graph_adrs_scopes_strictly_by_project 168
function test_load_graph_adrs_reports_a_node_without_register_as_legacy_unkeyed 205 A pre-ADR-0047 write (or any out-of-band Cypher write) with no
function test_report_is_ok_when_repo_and_graph_agree 232
function test_report_fails_and_names_the_missing_id 264
function test_report_flags_ambiguous_collision_between_repo_and_wiki 302 A repo file and a wiki heading claiming the SAME (register,
function test_report_is_ok_for_project_and_factory_registers_sharing_a_number 352 ADR-0047's actual fix: a wiki project-register heading (## ADR-001:)
function test_report_flags_drift_against_the_single_claiming_register 411
function test_report_flags_graph_orphan_as_non_violation 441 A graph node claimed by neither corpus is reported, but this gate's
function test_main_exit_0_when_in_sync 499
function test_main_exit_1_and_json_names_the_missing_id 534
function test_main_exit_2_when_adr_dir_does_not_exist 576
function test_main_exit_2_when_adr_dir_has_no_parseable_files 581
function test_main_exit_2_when_a_repo_file_is_malformed 587
function test_main_fail_prints_human_readable_report_without_json 593 The non-JSON FAIL branch: no matching --json call site above exercises
function test_report_collision_detail_when_graph_matches_the_repo_side 620
function test_report_collision_detail_when_graph_matches_neither_side 653
function test_report_collision_detail_when_neither_side_is_in_the_graph_yet 686