fix
This commit is contained in:
@@ -173,12 +173,14 @@ class PlannedSessionTests(TestCase):
|
||||
self.target.rowers.add(self.u.rower)
|
||||
self.target.save()
|
||||
|
||||
thismonthbegin = datetime.date(timezone.now().year,timezone.now().month,1)
|
||||
|
||||
self.plan = TrainingPlan.objects.create(
|
||||
manager = self.u.rower,
|
||||
name = faker.word(),
|
||||
status=True,
|
||||
target = self.target,
|
||||
startdate=timezone.now().date(),
|
||||
startdate=thismonthbegin,
|
||||
enddate = self.target.date,
|
||||
)
|
||||
|
||||
@@ -213,6 +215,7 @@ class PlannedSessionTests(TestCase):
|
||||
plan=self.macro,
|
||||
name = '%s' % firstday.strftime("%B"),
|
||||
type = 'userdefined')
|
||||
|
||||
meso.save()
|
||||
|
||||
mesos = TrainingMesoCycle.objects.filter(plan=self.macro)
|
||||
|
||||
Reference in New Issue
Block a user