Skip to content

jayps/django-testing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST Framework Testing Example

This repo contains a super basic DRF app with some super basic tests.

Getting started

  • Create a virtual environment. Consider using pyenv for this, it's awesome.
  • pip install -r requirements.txt

Run the application

python manage.py runserver

Run tests

coverage run --source='djangotesting.api' manage.py test djangotesting

Get coverage (command line)

coverage report

Get coverage (HTML)

coverage html

About

Django REST Framework Unit testing example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages