Update text search test since indexing ancestor hierarchy added

This commit is contained in:
Debanjum Singh Solanky
2023-11-17 14:49:39 -08:00
parent 55785d50c3
commit 33ad9b8e64
4 changed files with 5 additions and 12 deletions

View File

@@ -161,7 +161,7 @@ async def test_text_search(search_config: SearchConfig):
default_user,
)
query = "How to git install application?"
query = "Load Khoj on Emacs?"
# Act
hits = await text_search.query(default_user, query)
@@ -170,7 +170,7 @@ async def test_text_search(search_config: SearchConfig):
# Assert
search_result = results[0].entry
assert "git clone" in search_result, 'search result did not contain "git clone" entry'
assert "Emacs load path" in search_result, 'Expected "Emacs load path" in entry'
# ----------------------------------------------------------------------------------------------------