Orchestrata Ultimate › Tests › Reference › postman › test_replay_engine_extended
Tests reference — tests/postman/test_replay_engine_extended.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_replay_engine_extended.py
source · 9 tests · 378 lines
Tests targeting uncovered lines in ReplayEngine for 100% coverage.
Covers: postman.message_store, postman.replay_engine, postman.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestReplayEngineImportFlags |
60 | Test ImportError fallback branches at module level. |
| method | TestReplayEngineImportFlags.test_redis_unavailable_sets_flag_false |
64 | Lines 37-38: REDIS_AVAILABLE becomes False when redis import fails. |
| class | TestReplayEngineRedisUnavailable |
95 | Test behavior when REDIS_AVAILABLE is False at construction time. |
| method | TestReplayEngineRedisUnavailable.test_init_with_redis_unavailable |
98 | Line 124: redis_client is None when REDIS_AVAILABLE is False. |
| class | TestReplayEngineInitialize |
127 | Test async initialization paths. |
| method | TestReplayEngineInitialize.test_initialize_is_a_noop |
130 | initialize() completes without error and has no graph surface. |
| class | TestReplayEngineSqlite |
157 | Test SQLite query execution paths. |
| method | TestReplayEngineSqlite.test_execute_sql_returns_rows |
160 | Lines 174-183: _execute_sql returns query results. |
| method | TestReplayEngineSqlite.test_execute_sql_empty_result |
198 | Lines 174-183: _execute_sql returns empty list when no rows match. |
| class | TestReplayEngineEdgeCases |
223 | Test replay logic edge cases and error handling. |
| method | TestReplayEngineEdgeCases.test_process_replay_message_not_found |
226 | Line 294: message not found increments failed counter. |
| method | TestReplayEngineEdgeCases.test_process_replay_retrieve_exception |
267 | Lines 295-297: exception during retrieve increments failed counter. |
| method | TestReplayEngineEdgeCases.test_replay_with_delay_between_messages |
318 | Line 311: replay with delay_between_ms > 0 sleeps between messages. |
| method | TestReplayEngineEdgeCases.test_cancel_replay_not_found_returns_false |
363 | Line 383: cancel_replay returns False for unknown replay_id. |