开发者

Writing Django Unit Tests for Views [duplicate]

This question already has answers here: How do I unit test Django Views? (3 answers) 开发者_运维百科 Closed 9 years ago.

Does anyone have a good tute/example of writing good tests for views? Most of the stuff I've been finding was from mid 2008 which is only a little helpful.


Alex Gaynor wrote some tips about this very subject just the other day:

Getting started with testing in Django


I'm not sure if this is exactly what you're looking for, but I've been looking into this same topic and found this example test code very helpful.

http://bitbucket.org/ubernostrum/django-registration/src/tip/registration/tests/views.py

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜