home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
41f24ba
)
Fix broken date range test.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 30 May 2024 05:23:41 +0000
(07:23 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 30 May 2024 05:23:41 +0000
(07:23 +0200)
tests/days.py
patch
|
blob
|
history
diff --git
a/tests/days.py
b/tests/days.py
index 9e12d3ff665550f3fb23bb603e639ce8efbf60ff..055616480e7b8df3392badd41fe1b49fc818dbdf 100644
(file)
--- a/
tests/days.py
+++ b/
tests/days.py
@@
-81,13
+81,13
@@
class TestsWithDB(TestCaseWithDB):
[])
# check fill_gaps= instantiates unsaved dates within date range
# (but does not store them)
[])
# check fill_gaps= instantiates unsaved dates within date range
# (but does not store them)
- day4 = Day('2024-01-04')
day5 = Day('2024-01-05')
day6 = Day('2024-01-06')
day6.save(self.db_conn)
day5 = Day('2024-01-05')
day6 = Day('2024-01-06')
day6.save(self.db_conn)
- self.assertEqual(Day.all(self.db_conn, (date2, '2024-01-07'),
+ day7 = Day('2024-01-07')
+ self.assertEqual(Day.all(self.db_conn, (day5.date, day7.date),
fill_gaps=True),
fill_gaps=True),
- [day
2, day3, day4, day5, day6
])
+ [day
5, day6, day7
])
self.check_storage([day1, day2, day3, day6])
# check 'today' is interpreted as today's date
today = Day(todays_date())
self.check_storage([day1, day2, day3, day6])
# check 'today' is interpreted as today's date
today = Day(todays_date())