Simple FastAPI using aioredis for actual app and fakeredis for testing so we are sure our actual data is disturbed by our test code.
git clone
cd fastapi-aioredis
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --lifespan on
pytest