TTD-workshop repo is a simple API written using python Flask and Graphql using the graphene library with focus on testing queries and mutations.
- Test Query
- Test Mutations (Create,Update and Delete)
- Test Snapshots
First clone this repository
$ git clone https://github.com/owenbob/TDD-workshop.git
$ cd TDD-workshop
Create virtual environment and install it
$ virtualenv env
$ source/env/bin/activate
Then install all the necessary dependencies
pip install -r requirements.txt
At the terminal or console type
python app.py
Set APP_SETTINGS to testing
export APP_SETTINGS=testing
To run tests run this command at the console/terminal
pytest -vv
##Python Version Used
Python 3.6