Orchestrata Ultimate › Tests › Reference › test_memory

Tests reference — tests/test_memory.py

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

Prose pending.

tests/test_memory.py

source · 15 tests · 170 lines

Tests for orchestrata_ultimate.memory module.

Covers: memory.compressor, memory.token_counter, core.interfaces/ (package)

Kind Name Line Description
function test_word_token_counter_empty_string 46
function test_word_token_counter_single_word 51
function test_word_token_counter_multiple_words 58
function test_word_token_counter_truncate_returns_shorter 65
function test_word_token_counter_truncate_zero_max 72
function test_word_token_counter_truncate_text_fits 78
function test_get_token_counter_no_provider_returns_word_counter 90
function test_get_token_counter_anthropic_returns_word_counter 95
function test_get_token_counter_openai_returns_counter 102
function test_context_compressor_empty_entries 114
function test_context_compressor_single_entry 122
function test_context_compressor_truncates_to_budget 130
function test_context_compressor_recency_strategy 140
function test_context_compressor_importance_strategy 150
function test_context_compressor_source_keys_present 162