blockers through the db
This commit is contained in:
@@ -743,6 +743,13 @@ class WorkoutStatsTestNew(TestCase):
|
||||
|
||||
self.c = Client()
|
||||
self.user_workouts = WorkoutFactory.create_batch(5, user=self.r)
|
||||
|
||||
today = datetime.date.today()
|
||||
i = 0
|
||||
for w in self.user_workouts:
|
||||
w.date = today-datetime.timedelta(days=i)
|
||||
i += 1
|
||||
w.save()
|
||||
self.factory = RequestFactory()
|
||||
self.password = faker.word()
|
||||
self.u.set_password(self.password)
|
||||
|
||||
Reference in New Issue
Block a user