Orchestrata Ultimate › Tests › Reference › scripts › test_validate_env

Tests reference — tests/scripts/test_validate_env.py

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

Prose pending.

tests/scripts/test_validate_env.py

source · 17 tests · 186 lines

Tests for scripts/validate_env.py — the reproducibility-plan Phase R2 env

Kind Name Line Description
function test_complete_env_validates_with_no_missing_keys 42
function test_missing_required_key_is_reported 48
function test_missing_multiple_required_keys_are_all_reported 54
function test_empty_string_required_value_counts_as_missing 63
function test_whitespace_only_required_value_counts_as_missing 71
function test_missing_optional_key_does_not_affect_required_validation 79
function test_all_required_keys_missing_from_empty_env 87
function test_required_keys_order_is_preserved 92
function test_complete_env_has_no_missing_optional_keys 108
function test_missing_optional_key_is_reported 114
function test_empty_optional_value_counts_as_missing 120
function test_main_exits_zero_with_complete_env 131
function test_main_exits_nonzero_with_missing_required_key 140
function test_main_exits_zero_despite_missing_optional_key 151
function test_main_quiet_suppresses_report_output 162
function test_main_module_entry_point_is_callable_via_sys_exit 172 python scripts/validate_env.py runs sys.exit(main()) — confirm
function test_all_required_keys_are_also_documented_in_env_example 182 Every REQUIRED key must actually appear in .env.example (drift guard).