mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-08-05 08:42:18 -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:
|
try:
|
||||||
date = parse(date_span)
|
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:
|
except ParserError:
|
||||||
assert ' ago' in date_span
|
assert ' ago' in date_span
|
||||||
|
Loading…
x
Reference in New Issue
Block a user