Added test for sqlite-utils search, refs #192

This commit is contained in:
Simon Willison 2020-11-06 15:40:42 -08:00
commit 63e2bdf18d
4 changed files with 36 additions and 3 deletions

View file

@ -116,7 +116,7 @@ def test_populate_fts(fresh_db):
"text": "racoons are biting trash pandas",
"country": "USA",
"not_searchable": "bar",
"rank": 0.5108256237659907,
"rank": -0.5108256237659907,
}
] == rows
@ -137,7 +137,7 @@ def test_populate_fts_escape_table_names(fresh_db):
"text": "racoons are biting trash pandas",
"country": "USA",
"not_searchable": "bar",
"rank": 0.5108256237659907,
"rank": -0.5108256237659907,
}
] == list(table.search("usa"))