Commit 68d9660
fix: Update search service test to use timezone-aware datetime comparison
The test_after_date test was comparing timezone-naive datetime(2020, 1, 1)
with timezone-aware search results, causing a TypeError.
Fixed by making both past_date and future_date timezone-aware using
.astimezone() for consistent comparison with search result timestamps.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joe P <joe@basicmemory.com>1 parent 999670f commit 68d9660
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments