Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/test_docset.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ def _test_a_doc_page_index(
contains_lenient: list[tuple[str,str]] | None = None,
not_contains: list[tuple[str,str]] | None = None,
):
sql = f'''
sql = '''
SELECT type, name
FROM searchIndex
WHERE path LIKE '{path}#%'
WHERE path LIKE :path_like
'''
res = self.cur.execute(sql)
data = {'path_like': f'{path}#%'}
res = self.cur.execute(sql, data)
items = res.fetchall()

for pair in contains_lenient or []:
Expand Down
Loading