We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025d3c4 commit 388ed1aCopy full SHA for 388ed1a
tests/__init__.py
@@ -818,7 +818,11 @@ def test_date_range_implicit_time(self):
818
# < '2025-05-06' -> 2025-05-06 23:59:59 (include r2)
819
dom = [('moment', '<', '2025-05-06')]
820
ids = self.obj.search(c, u, dom)
821
- self.assertEqual(set(ids), {self.r1, self.r3})
+ # This is a rare case. With https://github.com/gisce/mongodb_backend/pull/49
822
+ # 2025-05-06 is treated as 2025-05-06 23:59:59 and 2025-05-06 20:00:00
823
+ # in included in the search result.
824
+ # self.assertEqual(set(ids), {self.r1, self.r3})
825
+ self.assertEqual(set(ids), {self.r1, self.r2, self.r3})
826
827
# >= '2025-05-06' -> 2025-05-06 00:00:00 (only r2)
828
dom = [('moment', '>=', '2025-05-06')]
0 commit comments