Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-04-30 09:00:14 +02:00
parent 9746b9925f
commit 7763969704
2 changed files with 12 additions and 2 deletions

View File

@@ -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)