Orchestrata Ultimate › Tests › Reference › scripts › test_factory_enforce_cli

Tests reference — tests/scripts/test_factory_enforce_cli.py

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

Prose pending.

tests/scripts/test_factory_enforce_cli.py

source · 17 tests · 621 lines

Tests for scripts/factory_enforce.py — the SPEC-033 B1a/B1b/B1c

Covers: factory.enforcement.attestation_store, factory.enforcement.bootstrap, factory.enforcement.ledger, factory.enforcement.models

Kind Name Line Description
function test_baseline_prints_tree_hashes 89
function test_register_writer_persists_identity 106
function test_register_writer_requires_by 134
function test_record_via_flags_appends_to_ledger 159
function test_record_via_stdin_json 192 Real OS subprocess feeding real stdin -- no monkeypatched sys.stdin.
function test_record_without_stdin_requires_name 228
function test_record_without_stdin_requires_commit 234
function test_bootstrap_writes_human_record 257
function test_verify_exit_0_on_pass 291
function test_verify_exit_1_on_fail_with_violation_lines 356
function test_verify_defaults_ledger_and_registry_paths 386 No --ledger/--registry/--worktree given: defaults derive from --repo-root.
function test_attest_signs_and_prints_key_id_and_signature 443
function test_attest_unknown_record_id_exits 482
function test_verify_attestations_exit_0_when_all_valid 504
function test_verify_attestations_exit_1_on_tamper 542 Storage-level tamper regression: mutate a stored attestation's
function test_verify_attestations_missing_key_exits 589
function test_verify_attestations_no_attestations_is_pass 605