Orchestrata Ultimate › Tests › Reference › postman › test_coverage_message_store
Tests reference — tests/postman/test_coverage_message_store.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_coverage_message_store.py
source · 13 tests · 428 lines
Tests targeting uncovered lines in MessageStore for 100% coverage.
Covers: postman.constants, postman.message_store, postman.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestMessageStoreNoRedis |
33 | Test MessageStore with redis_client forced to None. |
| method | TestMessageStoreNoRedis.test_store_and_retrieve_without_redis |
41 | Store and retrieve via SQLite when redis_client is None. |
| method | TestMessageStoreNoRedis.test_store_and_retrieve_without_redis_preserves_compressed_and_size |
82 | SQLite-only retrieve is a real consumer of the restored fields. |
| method | TestMessageStoreNoRedis.test_retrieve_nonexistent_without_redis |
117 | Retrieve a non-existent message when redis_client is None. |
| method | TestMessageStoreNoRedis.test_delete_without_redis |
130 | Delete a message when redis_client is None. |
| method | TestMessageStoreNoRedis.test_cleanup_without_redis |
154 | Cleanup old messages when redis_client is None. |
| method | TestMessageStoreNoRedis.test_init_with_redis_unavailable |
181 | Test that redis_client is None when REDIS_AVAILABLE is False. |
| class | TestMessageStoreQueryTopic |
199 | Test MessageStore.query() with the topic parameter. |
| method | TestMessageStoreQueryTopic.test_query_by_topic_exact |
207 | Query with an exact topic string (no wildcards). |
| method | TestMessageStoreQueryTopic.test_query_by_topic_wildcard |
234 | Query with a wildcard topic pattern using '*'. |
| method | TestMessageStoreQueryTopic.test_query_by_topic_combined_with_sender |
265 | Query combining topic and sender filters. |
| method | TestMessageStoreQueryTopic.test_query_by_topic_no_matches |
292 | Query with a topic that matches nothing. |
| class | TestMessageStoreRedisCacheMiss |
311 | Test retrieve() SQLite fallback WITH Redis available but cache empty. |
| method | TestMessageStoreRedisCacheMiss.test_retrieve_populates_redis_cache_after_sqlite_hit |
318 | Store a message, evict it from Redis cache, then retrieve. |
| class | TestMessageStoreImportFlags |
380 | Test that REDIS_AVAILABLE exists and that the ImportError branch |
| method | TestMessageStoreImportFlags.test_redis_available_flag_is_boolean |
385 | REDIS_AVAILABLE is set at import time (lines 23-27). |
| method | TestMessageStoreImportFlags.test_redis_unavailable_sets_flag_false |
393 | Lines 26-27: REDIS_AVAILABLE becomes False when redis import fails. |