mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-29 20:34:31 +02:00
Added test for sqlite-utils search, refs #192
This commit is contained in:
parent
d411fba1f4
commit
63e2bdf18d
4 changed files with 36 additions and 3 deletions
|
|
@ -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"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue