/pytest_redispool_fastapi

A sample code demonistrating Fast Api using redis pools and pytest all running in async mode (asyncio)

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

The problem

It was tricky to get the three working together : FastApi, Redis ConnectionPoos and Pytest all under Asyncio.

This sample code provides the boiler-plate of a working solution.

Install and run

git clone https://github.com/kefahi/pytest_redispool_fastapi.git
cd pytest_redispool_fastapi
pip install --user -r requirements.txt
pytest