mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-18 14:34:24 +02:00
failing test for fts
This commit is contained in:
parent
22f1d9e199
commit
eb5aa71bce
1 changed files with 11 additions and 0 deletions
|
|
@ -501,3 +501,14 @@ def test_search_sql(kwargs, fts, expected):
|
|||
db["books"].enable_fts(["title", "author"], fts_version=fts)
|
||||
sql = db["books"].search_sql(**kwargs)
|
||||
assert sql == expected
|
||||
|
||||
def test_quote_fts_query(fresh_db):
|
||||
|
||||
table = fresh_db["searchable"]
|
||||
table.insert_all(search_records)
|
||||
table.enable_fts(["text", "country"])
|
||||
|
||||
query = "cat's"
|
||||
list(table.search(query))
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue