This is a standalone exercise to practice writing tests and engaging in Test Driven Development (TDD).
This project requires Python 3.7 and uses Poetry for Python to handle dependencies. Follow the instructions here to set up Poetry.
Once configured, the following command (run from the project root) will install project dependencies:
$ poetry install
To launch the API, run the app.py
file from within the poetry
shell. The API should be live and swagger docs visible at http://localhost:5000/.
Unit and integration tests suits are run using pytest:
poetry shell
(if not already active)pytest