Orchestrata Ultimate › Tests › Reference › session › test_context_durability

Tests reference — tests/session/test_context_durability.py

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

Prose pending.

tests/session/test_context_durability.py

source · 12 tests · 205 lines

Durability + concurrency tests for the in-repo ContextFileManager.

Covers: session.context, session.models

Kind Name Line Description
function test_initialize_writes_valid_json 59
function test_round_trip_state 66
function test_no_temp_files_left_behind 74
function test_atomic_helper_truncates_via_replace 80
function test_backup_holds_previous_good_version 93
function test_corrupt_current_file_never_backed_up 102
function test_recovers_from_trailing_garbage 117
function test_falls_back_to_backup_when_unsalvageable 126
function test_unrecoverable_raises_clear_error 135
function test_nested_transaction_reentrant_no_deadlock 154
function test_lock_released_after_transaction 171
function test_concurrent_writes_no_corruption_no_lost_updates 185