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
(parent:
a8a7b5d
)
Add Day.all() date ranging test.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 17 Mar 2024 04:05:49 +0000
(
05:05
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 17 Mar 2024 04:05:49 +0000
(
05:05
+0100)
tests/test_days.py
patch
|
blob
|
history
diff --git
a/tests/test_days.py
b/tests/test_days.py
index 8f5f2678c002034f02a1f036c28b976dd1b589b6..86be2efc37a77760494017fbae1f6965ac3eb964 100644
(file)
--- a/
tests/test_days.py
+++ b/
tests/test_days.py
@@
-49,6
+49,7
@@
class DayTests(TestCase):
day2.save(conn)
day3.save(conn)
self.assertEqual(Day.all(conn), [day1, day2, day3])
+ self.assertEqual(Day.all(conn, ('', '')), [day1, day2, day3])
self.assertEqual(Day.all(conn, ('2024-01-01', '2024-01-03')),
[day1, day2, day3])
self.assertEqual(Day.all(conn, ('2024-01-02', '2024-01-03')),