Orchestrata Ultimate › Tests › Reference › scripts › test_check_kg_connectivity

Tests reference — tests/scripts/test_check_kg_connectivity.py

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

Prose pending.

tests/scripts/test_check_kg_connectivity.py

source · 18 tests · 333 lines

Tests for scripts/check_kg_connectivity.py — the session-254 KG

Covers: core.graph/ (package)

Kind Name Line Description
function test_label_key_sorts_and_joins_multi_label_nodes 86
function test_label_key_handles_no_labels 90
function test_batched_splits_into_requested_chunk_size 95
function test_batched_empty_input_yields_nothing 100
function test_connectivity_report_ok_and_to_dict 104
function test_top_unreachable_by_label_caps_at_top_n_and_sorts_desc 122
function test_top_unreachable_by_label_respects_top_n_override 131
function test_top_unreachable_by_label_excludes_zero_and_fully_reached_labels 137
function test_driver_uses_args_over_env 144
function test_driver_falls_back_to_env 155
function test_compute_connectivity_reaches_linked_node_and_flags_orphan 176
function test_compute_connectivity_no_seed_project_reaches_nothing 204 When no node carries the seed label, the BFS frontier starts empty —
function test_unreachable_node_ids_flags_orphan_under_its_label_key 220 The orphan created under a brand-new, never-before-used label is
function test_unreachable_node_ids_labels_filter_restricts_result_keys 246 labels narrows the RETURNED keys only -- the traversal itself
function test_main_json_output_satisfies_exit_code_contract 268 The exit code must always agree with the reported unreachable count
function test_main_text_output_reports_counts 297
function test_print_report_no_unreachable_labels 316
function test_print_report_lists_unreachable_labels 325