Background
While trying to get async-redis to work I ran into issues while writing unit tests for it. This code for this git repo boils down the code to it's most basic parts.
Prerequisites
- This assumes you have python 3.9 installed on your machine. If you don't then simply edit setup_venv.sh and give it a different python version.
- This assumes you have the virtualenv package installed (via brew).
- This assumes you have the redis cli installed. So you can run
redis-server
for instance.
How to build
- Open a terminal window
- Run the command
./setup_venv.sh
- Run the command
source venv/bin/activate
How to run all the tests
- Run the command
redis-server
- First build the code (see steps above)
- Run the command
make unit-tests