pytest-redis
pytest-redis copied to clipboard
no way to pass `--loadmodule` argument to command line
I would like to be able to start redis in tests, with redis-server extended with Redis extension modules.
The --loadmodule
command line argument is here for this. Unfortunately it is not supported by pytest-redis
.
I tried other possibilities, but actually it is not possible:
- to pass any keyword argument ( see issue #297)
- to specify a configuration file for the redis server started with
pytest-redis
- regarding modules, without allowing it in a configuration file, it is forbidden to use the
MODULE LOAD
command once server is started
So, the easiest would really be to add modules
as a valid keyword argument to the the Redis executor.
I made a pull request to fix this.
I made an update pull request