- install pipenv by
pip install pipenv
-
pipenv install
-
pipenv shell
python app.py
brew install postgresql
docker run --name carpendev-app-db -d -p 5432:5432 -e POSTGRES_PASSWORD=aleksander postgres
and to initialize tables launch app through
python init-for-dev.py
and fire some request to create necessary tables
export PYTHONPATH=`pwd`
pytest
# use -v to show more detailed information about test results
to generate coverage
coverage run --source=. -m pytest
coverage html
There is a yaml file per path.
Swagger available at /swagger