From d0f14d3f859ff333814cccf053f652d7c6ce0eb1 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 16 Mar 2023 14:51:40 -0600 Subject: [PATCH] Test usage of = in date filter queries --- tests/test_date_filter.py | 4 ++++ 1 file changed, 4 insertions(+) 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