Orchestrata Ultimate › Tests › Reference › session › test_redis_store_real

Tests reference — tests/session/test_redis_store_real.py

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

Prose pending.

tests/session/test_redis_store_real.py

source · 21 tests · 370 lines

Real Redis integration tests for RedisSessionStore.

Covers: infra.redis_state, session.redis_store, session.types

Kind Name Line Description
class TestSessionCRUD 64 Session save/get/delete against real Redis.
method TestSessionCRUD.test_save_and_get_session 67
method TestSessionCRUD.test_get_nonexistent_session_returns_none 83
method TestSessionCRUD.test_delete_session_removes_all_keys 88
method TestSessionCRUD.test_save_session_with_datetime_field 105
method TestSessionCRUD.test_save_session_with_none_field 120
class TestActiveTracking 136 Active session set operations.
method TestActiveTracking.test_set_and_check_active 139
method TestActiveTracking.test_clear_active 147
class TestFactStorage 153 Fact storage against real Redis.
method TestFactStorage.test_save_and_get_fact 156
method TestFactStorage.test_get_facts_with_filter 173
method TestFactStorage.test_save_facts_batch 201
class TestContextStorage 219 Context key-value operations.
method TestContextStorage.test_save_and_get_context 222
method TestContextStorage.test_get_all_context 230
method TestContextStorage.test_delete_context 239
method TestContextStorage.test_clear_context 247
class TestCheckpointStorage 254 Checkpoint operations against real Redis.
method TestCheckpointStorage.test_save_and_get_checkpoint 257
method TestCheckpointStorage.test_get_checkpoints_ordered 274
method TestCheckpointStorage.test_get_latest_checkpoint_empty 292
method TestCheckpointStorage.test_delete_checkpoints 297
class TestCarryoverStorage 313 Carryover operations.
method TestCarryoverStorage.test_save_and_get_carryover 316
method TestCarryoverStorage.test_clear_carryover 325
class TestCleanupSession 334 Cleanup removes all session data.
method TestCleanupSession.test_cleanup_session 337