Orchestrata Ultimate › Tests › Reference › session › test_session_checkpoint
Tests reference — tests/session/test_session_checkpoint.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_checkpoint.py
source · 15 tests · 174 lines
Tests for CheckpointManager.
Covers: infra.redis_state, session.checkpoint, session.redis_store, session.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestCreate |
63 | Test checkpoint creation. |
| method | TestCreate.test_create_checkpoint |
66 | |
| method | TestCreate.test_create_captures_session_data |
72 | |
| method | TestCreate.test_create_captures_context |
77 | |
| method | TestCreate.test_create_captures_fact_count |
82 | |
| method | TestCreate.test_create_with_extra_state |
94 | |
| class | TestRestore |
99 | Test checkpoint restoration. |
| method | TestRestore.test_restore_from_checkpoint |
102 | |
| method | TestRestore.test_restore_nonexistent |
113 | |
| class | TestGetLatest |
118 | Test getting latest checkpoint. |
| method | TestGetLatest.test_no_checkpoint |
121 | |
| method | TestGetLatest.test_latest_after_create |
125 | |
| class | TestList |
132 | Test listing checkpoints. |
| method | TestList.test_list_empty |
135 | |
| method | TestList.test_list_multiple |
139 | |
| class | TestPrune |
147 | Test checkpoint pruning. |
| method | TestPrune.test_prune_keeps_latest |
150 | |
| method | TestPrune.test_prune_no_op_when_under_limit |
158 | |
| class | TestCount |
164 | Test checkpoint counting. |
| method | TestCount.test_count_zero |
167 | |
| method | TestCount.test_count_after_creates |
171 |