Test usage of = in date filter queries

This commit is contained in:
Debanjum Singh Solanky 2023-03-16 14:51:40 -06:00
parent dfb277ee37
commit d0f14d3f85

View file

@ -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