Newman Api Test Code style: black

Prerequisites

  • python 3.8
  • pipenv (recommended for better dependencies management) , just pip also works

Usage examples

  • python main.py --help for all cli args
  • example for running local flask debug python main.py --db-url=postgres://{user}:{password}@{hostname}:{port}/{database-name} --port=5000 --debug=yes
  • python main.py to run waitress WSGI server with port and db-url from environment variables (suitable for heroku setup)

Formatter

Tests

  • Use postman_collection.json and postman_environment.json in postman test runner