Orchestrata Ultimate › Tests › Reference › scripts › test_factory_anchors_cli

Tests reference — tests/scripts/test_factory_anchors_cli.py

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

Prose pending.

tests/scripts/test_factory_anchors_cli.py

source · 22 tests · 646 lines

Tests for scripts/factory_anchors.py — the SPEC-033 (B15a) anchor CLI.

Covers: factory.anchors.store, factory.dor_procedure.anchors_export, factory.dor_procedure.models

Kind Name Line Description
function test_propose_prints_anchor_id_and_persists 50
function test_propose_with_boundary 79
function test_propose_oracle_without_observed_prefix_exits_nonzero 107
function test_propose_duplicate_exits_nonzero 130
function test_import_dor_reports_count 156
function test_import_dor_missing_file_exits_nonzero 215
function test_ratify_transitions_to_ratified 254
function test_ratify_unknown_id_exits_nonzero 279
function test_supersede_transitions_to_superseded 296
function test_supersede_not_ratified_exits_nonzero 332
function test_list_shows_per_class_and_pending_counts 358
function test_list_filters_by_requirement 375
function test_list_filters_by_status 418
function test_list_empty_registry_prints_zero_counts 433
function test_evaluate_prints_satisfied_and_exits_zero 475
function test_evaluate_exits_nonzero_on_unsatisfied 498
function test_evaluate_no_ratified_anchors_exits_zero 521
function test_evaluate_missing_evidence_file_exits_nonzero 539
function test_fast_path_eligible_when_satisfied_and_unchanged 558
function test_fast_path_blocked_when_anchor_changed 580
function test_fast_path_blocked_when_anchor_unsatisfied 605
function test_fast_path_missing_evidence_file_exits_nonzero 630