Hacker News new | ask | show | jobs
by dgrant 4486 days ago
He probably meant integration tests. Generally the standard practice in Django is to do integration testing at various levels. 1) Test the model with an in-memory database, or real database with rollbacks at the end of every test. 2) Test the views, generally using the actual models and db. I don't ever use mocks much when testing a Django project.

It wouldn't be too much trouble to mock the model when testing the views, but I don't bother and I don't imagine anyone else does either.