On Fri, May 1, 2015 at 5:17 AM, Avraham Serour wrote:
> In my opinion you shouldn't, you should set the test data and make a real
> query then compare results, you shouldn't care how the function got the
> data, but that it got it correctly.
that's part of a much bigger religious war, with "unit
It seems correct, but the question is if you should do it.
In my opinion you shouldn't, you should set the test data and make a real
query then compare results, you shouldn't care how the function got the
data, but that it got it correctly.
let's say tomorrow you add a prefetch_related to your qu
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:
https://gist.github.com/edgabaldi/ffdffa60f2add650f052
Am i doing it wrong? Do i have better wa
3 matches
Mail list logo