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
Ben Busby 2020-04-24 18:10:57 -06:00
parent 4fb8ab6cac
commit 9c7b4c1444
1 changed files with 1 additions and 1 deletions

View File

@ -50,6 +50,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
except ParserError: except ParserError:
assert ' ago' in date_span assert ' ago' in date_span