This repo contains code + other configuration to develop my ability to write unit tests for Django.
The initial commit to the repo is based on code developed from following the Test Driven Django Development tutorial.
At the time of the initial commit, all tests were passing on my local machine.
To get this working with travis CI the following .travis.yml
file was
sufficent:
language: python
python:
- "3.7"
install:
- pip install -r requirements.txt
script:
- python manage.py test
This needed to be added to the repo and committed to Github for Travis CI to pick up the new version of the repo and run the tests. As can be seen here the build passed the tests.