Work and django unittest used in the test

A: Django use the experience to use TestCase test interface

https://juejin.im/post/5c186c6a5188254fef232f6d       

Use TestCase test APIView Interface

Generating test data using a mixer in TestCase

 

Two: python-depth test

http://www.ttlsa.com/docs/dive-into-python3/unit-testing.html

Guess you like

Origin www.cnblogs.com/longfeiwang/p/11611297.html