Thursday, April 30, 2015

The best way to mock querysets

Who practices TDD (XP like) says that the tests need to run quickly. For this, we have to mock all external resources of the method that i want to test.

In the case of queryset, i think so strange. Eg:

Am i doing it wrong? Do i have better way to do that?

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment