Redis – How to mock a function that returns some value
I need to test saving the confirmation code to the Redis cache. For example, there is a view that processes a user registration request. The view accepts a phone number and sends an SMS with a code to it. The…