Awesome video by Carl Meyer on the topic of Testing in Django. You know you’re getting there when you’re nodding your head at some of the points raised during the talk.
Top 2 Takeways
- Don’t hit the db if you can avoid it. I have a lot of ORM that creates objects literally in the test database. This is slow. Use factory boy instead
- Check out django-webtest. A lot of my tests for the projects are essentially testing the forms within a view function.