Writing Django Unit Tests for Views [duplicate]
-
22-07-2019 - |
Question
This question already has an answer here:
- How do I unit test Django Views? 3 answers
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.
Solution
Alex Gaynor wrote some tips about this very subject just the other day:
OTHER TIPS
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow