Orchestrata Ultimate › Tests › Reference › scripts › test_test_green_ledger

Tests reference — tests/scripts/test_test_green_ledger.py

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

Prose pending.

tests/scripts/test_test_green_ledger.py

source · 32 tests · 614 lines

Tests for scripts/test_green_ledger.py — RUL-032's proven-content ledger.

Kind Name Line Description
function test_closure_for_reaches_transitive_src_file 131
function test_closure_for_unknown_test_has_empty_closure 140
function test_closure_for_with_injected_loader_bypasses_the_cache 145 A caller-supplied load_ast (test injection) always re-reads --
function test_closure_for_missing_ast_returns_empty_not_fatal 167
function test_key_inputs_conftest_chain_is_root_to_leaf 180
function test_key_inputs_top_level_test_has_minimal_conftest_chain 196
function test_key_inputs_closure_is_sorted 206
function test_module_key_changes_when_test_file_changes 222
function test_module_key_changes_when_closure_src_file_changes 232
function test_module_key_changes_when_conftest_changes 241
function test_module_key_changes_when_pyproject_changes 250
function test_module_key_unchanged_when_env_file_changes 259 RUL-032: env/*.env is NOT a key input -- it is excluded by the
function test_module_key_missing_closure_file_is_skipped_not_fatal 274
function test_load_ledger_missing_file_returns_empty 290
function test_load_ledger_corrupt_json_returns_empty 294
function test_record_green_then_load_roundtrips 300
function test_record_green_is_atomic_no_tmp_file_left_behind 320
function test_record_green_preserves_other_modules 334
function test_partition_module_never_recorded_goes_to_run 357
function test_partition_reuses_only_on_exact_key_match 367
function test_partition_mixed_modules 393
function test_cmd_status_reports_reused_and_run 419
function test_main_status_dispatches_to_cmd_status 445
function test_main_requires_one_of_status_or_seed_from 464
function test_seed_from_admits_module_whose_inputs_are_unchanged 474
function test_seed_from_refuses_module_whose_inputs_changed_after_recorded_head 497
function test_seed_from_refuses_all_when_head_commit_missing 519
function test_seed_from_refuses_all_when_head_commit_not_ancestor 533
function test_seed_from_refuses_module_that_no_longer_exists_on_disk 552
function test_seed_from_unreadable_report_returns_1 570
function test_changed_since_returns_none_on_git_failure 577
function test_main_seed_from_cli 584