fixing tests coverage by creating tests of new functionality
This commit is contained in:
@@ -232,6 +232,7 @@ class PlannedSessionTests(TestCase):
|
||||
elif not sundays:
|
||||
sundays = [cycle.enddate]
|
||||
|
||||
|
||||
for i in range(len(sundays)):
|
||||
if i==0:
|
||||
monday = cycle.startdate
|
||||
@@ -239,6 +240,7 @@ class PlannedSessionTests(TestCase):
|
||||
monday = sundays[i]-datetime.timedelta(days=6)
|
||||
if monday < cycle.startdate:
|
||||
monday = cycle.startdate
|
||||
|
||||
|
||||
nextsunday = sundays[i]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user