Orchestrata Ultimate › Tests › Reference › claude › test_session_archive_coverage

Tests reference — tests/claude/test_session_archive_coverage.py

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

Prose pending.

tests/claude/test_session_archive_coverage.py

source · 20 tests · 233 lines

Line-coverage tests for claude/tools/session/archive.py.

Kind Name Line Description
function test_history_missing_returns_empty 52
function test_history_present_is_read 57
function test_archive_empty_list_is_a_noop 66
function test_archive_creates_header_and_rendered_session 71
function test_archive_appends_to_existing_archived_header 85 Existing file that already starts with the archive header: new content
function test_archive_prepends_header_to_foreign_existing_content 100 Existing file without the archive header gets the header prepended.
function test_counts_without_history 115
function test_counts_and_nums_from_rendered_history 120
function test_search_without_history 129
function test_search_finds_case_insensitive_matches_with_context 133
function test_get_archived_session_without_history 150
function test_get_archived_session_found_and_missing 154
function test_get_archived_session_unpadded_seq_fallback 164 A history written with an UNPADDED seq header (no %03d) is still found
function test_stats_without_history 180
function test_stats_with_history 189
function test_clear_without_history_returns_false 201
function test_clear_removes_history_file 205
function test_should_archive_missing_ctx_is_false 214
function test_should_archive_small_ctx_is_false 220
function test_should_archive_large_ctx_is_true 228