summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Deniaud <vdeniaud@entrouvert.com>2020-10-20 08:31:40 (GMT)
committerValentin Deniaud <vdeniaud@entrouvert.com>2020-10-20 08:31:40 (GMT)
commit911f847b24184c68b86e7e9b5a0ddb2714923b4f (patch)
tree710a9a479f01a60270785543009b0d9536be71f2
parent1fc76fd66ef70222241ad511a2bf318540f98db4 (diff)
downloadauthentic-911f847b24184c68b86e7e9b5a0ddb2714923b4f.zip
authentic-911f847b24184c68b86e7e9b5a0ddb2714923b4f.tar.gz
authentic-911f847b24184c68b86e7e9b5a0ddb2714923b4f.tar.bz2
test_journal: add missing make_naive (#47872)
-rw-r--r--tests/test_journal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_journal.py b/tests/test_journal.py
index f177a24..34f3765 100644
--- a/tests/test_journal.py
+++ b/tests/test_journal.py
@@ -270,7 +270,9 @@ def test_journal_form_date_hierarchy(random_events, rf):
[
event
for event in random_events
- if event.timestamp.year == year and event.timestamp.month == month and event.timestamp.day == day
+ if make_naive(event.timestamp).year == year
+ and make_naive(event.timestamp).month == month
+ and make_naive(event.timestamp).day == day
]
)