资源算法DRF-TDD-example

DRF-TDD-example

2020-02-04 | |  43 |   0 |   0

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


上一篇:android-tdd-playground

下一篇:TDDIntro

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...