yahoo / redislite

Redis in a python module.
Other
580 stars 75 forks source link

Support for RedisJSON #166

Open calthomson opened 1 year ago

calthomson commented 1 year ago

We use redislite for our unit tests. We've recently started using the RedisJSON module, which causes our unit tests to break seeing redislite does not support the RedisJSON commands:

redis.exceptions.ResponseError: unknown command `JSON.SET`, with args beginning with....

I don't seen any mention of RedisJSON in any redislite discussions, or for any other redis libraries for unit testing. Does anyone know of a good way to unit test where RedisJSON commands are involved short of mocking them manually?

cunla commented 1 year ago

Supported in fakeredis