/djangotdd

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

TDD with Django

Build Status Coverage Status

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.

Travis CI

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.

Links

Setting up coverage + badge