diff --git a/tests/test_date_filter.py b/tests/test_date_filter.py index 09363a2d..05f19ae3 100644 --- a/tests/test_date_filter.py +++ b/tests/test_date_filter.py @@ -62,6 +62,10 @@ def test_extract_date_range(): datetime(1984, 1, 1, 0, 0, 0).timestamp(), datetime(1984, 1, 2, 0, 0, 0).timestamp(), ] + assert DateFilter().extract_date_range('head dt="1984-01-01"') == [ + datetime(1984, 1, 1, 0, 0, 0).timestamp(), + datetime(1984, 1, 2, 0, 0, 0).timestamp(), + ] # Unparseable date filter specified in query assert DateFilter().extract_date_range('head dt:"Summer of 69" tail') == None