mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-31 15:08:42 -04:00
Updated recent results test w/ +5 day tolerance
This commit is contained in:
parent
c51f186419
commit
b15368ac28
@ -62,6 +62,6 @@ def test_recent_results(client):
|
||||
|
||||
try:
|
||||
date = parse(date_span)
|
||||
assert (current_date - date).days <= num_days
|
||||
assert (current_date - date).days <= (num_days + 5) # Date can have a little bit of wiggle room
|
||||
except ParserError:
|
||||
assert ' ago' in date_span
|
||||
|
Loading…
x
Reference in New Issue
Block a user