This repo is a simple example for an easy database integration testing with pytest, factoryboy and sqlalchemy.
Read the full article here
Tests assume you have a running postgresql database.
If you have UNIX OS and postgres commands installed you can simply run
docker-compose up
and then
sh init_db.sh
pipenv install
pytest -vv
~ Have a nice day! ~