From 9c7b4c1444a4acd822b82f2f655f782ab5930eb2 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 24 Apr 2020 18:10:57 -0600 Subject: [PATCH] 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) --- test/test_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_results.py b/test/test_results.py index 18a0217..cb70957 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -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