jamesls / fakeredis

Fake implementation of redis API (redis-py) for testing purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behaviour of transaction() does not match redis-py

okey opened this issue · comments

commented

Here is redis-py's transaction()

As you can see, it takes keyword arguments: def transaction(self, func, *watches, **kwargs)
fakeredis' transaction() does not expect keyword arguments: def transaction(self, func, *keys)

Naturally this results in a TypeError when trying to use keyword arguments.

The three current kwargs are shard_hint=None, value_from_callable=False, and watch_delay=None. The fakeredis implementation, however, does not support any of these.