Fixed bad test assertion
Was previously checking for non-inclusive max number of days (i.e. filtering by past month would return a failed test if the result was from exactly 31 days ago)main
parent
4fb8ab6cac
commit
9c7b4c1444
|
@ -50,6 +50,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
|
||||
except ParserError:
|
||||
assert ' ago' in date_span
|
||||
|
|
Loading…
Reference in New Issue