pytest-redis icon indicating copy to clipboard operation
pytest-redis copied to clipboard

no way to pass `--loadmodule` argument to command line

Open mguijarr opened this issue 9 months ago • 2 comments

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.

mguijarr avatar May 02 '24 15:05 mguijarr

I made a pull request to fix this.

mguijarr avatar May 02 '24 16:05 mguijarr

I made an update pull request

mguijarr avatar May 10 '24 13:05 mguijarr