Following the official Flask tutorial here. It is a simple blogging application with a RESTful API that allows adding/authenticating users, and CRUDing blog posts.
- Python 3.7
- SQLite 3
pip install -e .
FLASK_APP=flaskr FLASK_ENV=development flask init-db
FLASK_APP=flaskr FLASK_ENV=development flask run
Make sure you have installed pytest
and coverage
with pip
. After that, just run pytest
in the terminal to run the tests :)
In order to check the coverage
coverage run -m pytest
coverage report