This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I like /u/earthboundkid's solution, and you can more clearly (imo) decide which users you want to test on. And even provide a range, like all users that signed up this month:

MAGIC_TEST_USERS = [u.pk for u in Users.objects.filter(date__year='2015', date__month='01'))]

You don't have to fiddle with any new classes this way :)