An example Django REST framework project for test driven development.
Branch: master
Clone or download
erdem Merge pull request #8 from ulgens/upgrade_pip
Updated PIP packages versions
Latest commit 80e9420 Oct 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
todoapp Use Django2 style URLs Oct 30, 2018
.gitignore add django-nose and coverage Oct 5, 2017
LICENSE added LICENSE file Mar 5, 2016
README.md Format README.md May 18, 2017
requirements.txt Upgrade PIP packages Oct 30, 2018

README.md

DRF-TDD-Example

An example Django REST framework project for test driven development.

Test Case Scenarios

  • Test to verify registration with invalid password.
  • Test to verify registration with already exists username.
  • Test to verify registration with valid datas.
  • Tested API authentication endpoint validations.
  • Tested authenticated user authorization.
  • Create a todo with API.
  • Update a todo with API.
  • Update a todo with API.
  • Delete a todo with API.
  • Get todo list for a user.

API Endpoints

Users

  • /api/users/ (User registration endpoint)
  • /api/users/login/ (User login endpoint)
  • /api/users/logout/ (User logout endpoint)

Todos

  • /api/todos/ (Todo create and list endpoint)
  • /api/todos/{todo-id}/ (Todo retrieve, update and destroy endpoint)

Install

pip install -r requirements.txt

Usage

python manage.py test