From 8141be97f6dbd193598303b9abe856c105fe6614 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 18 Sep 2023 11:24:56 -0700 Subject: [PATCH] Update date filter test to use compiled rather than raw key --- tests/test_date_filter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_date_filter.py b/tests/test_date_filter.py index 00e6bfa3..d0d05bc5 100644 --- a/tests/test_date_filter.py +++ b/tests/test_date_filter.py @@ -14,9 +14,9 @@ from khoj.utils.rawconfig import Entry @pytest.mark.filterwarnings("ignore:The localize method is no longer necessary.") def test_date_filter(): entries = [ - Entry(compiled="", raw="Entry with no date"), - Entry(compiled="", raw="April Fools entry: 1984-04-01"), - Entry(compiled="", raw="Entry with date:1984-04-02"), + Entry(compiled="Entry with no date", raw="Entry with no date"), + Entry(compiled="April Fools entry: 1984-04-01", raw="April Fools entry: 1984-04-01"), + Entry(compiled="Entry with date:1984-04-02", raw="Entry with date:1984-04-02"), ] q_with_no_date_filter = "head tail"