Writing Django Tests for Views

Does anyone have a good example / example of writing good tests for views? Most of the material I discovered has been since mid-2008, which is only a little useful.

+3
source share
2 answers

Alex Gaynor wrote some tips on this very issue just the other day:

Getting started with testing in Django

+6
source

I'm not sure if this is exactly what you are looking for, but I studied this topic and found this sample test code very useful.

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

+1
source

Source: https://habr.com/ru/post/1724356/


All Articles