test : added unit tests for redis_cache service#815
Conversation
|
@tmdeveloper007 is attempting to deploy a commit to the ritesh Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Refs #814.
Summary of What Has Been Done:
Added comprehensive unit tests for the redis_cache.py service. The tests cover the RedisInferenceCache class with 36 test cases across helper functions and all cache operations.
Changes Made:
Impact it Made:
This adds test coverage for the Redis caching layer, ensuring graceful degradation works correctly when Redis is unavailable and cache operations behave correctly across different states.