Orchestrata Ultimate › Tests › Reference › scripts › test_repair_project_hubs
Tests reference — tests/scripts/test_repair_project_hubs.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_repair_project_hubs.py
source · 11 tests · 320 lines
Tests for scripts/repair_project_hubs.py — the one-shot repair that
Covers: core.graph_factory
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_outgoing_rels_reports_allowed_types_and_counts |
82 | |
| function | test_outgoing_rels_refuses_on_disallowed_relationship_type |
101 | |
| function | test_outgoing_rels_empty_for_hub_with_no_edges |
116 | |
| function | test_move_edges_merges_onto_canonical_and_deletes_source_edges |
131 | |
| function | test_move_edges_is_a_noop_when_nothing_to_move |
158 | |
| function | test_repair_aborts_when_canonical_hub_missing |
175 | |
| function | test_repair_dry_run_reports_without_writing |
189 | |
| function | test_repair_execute_moves_edges_and_deletes_bogus_hub |
219 | |
| function | test_repair_execute_deletes_edgeless_bogus_hub |
252 | A bogus hub with zero outgoing edges is still deleted on --execute |
| function | test_main_dry_run_cli_reaches_repair_and_returns |
285 | |
| function | test_main_uses_default_slugs_and_canonical_when_none_given |
310 | No --slug/--canonical -- main() falls back to |