mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
Use FTS4 when running the tests
Because the version of sqlite3 running in Travis CI does not have FTS5
This commit is contained in:
parent
9fdf2c169c
commit
d1209a2c45
1 changed files with 4 additions and 4 deletions
|
|
@ -8,14 +8,14 @@ def test_enable_fts(fresh_db):
|
|||
table = fresh_db["searchable"]
|
||||
table.insert_all(search_records)
|
||||
assert ["searchable"] == fresh_db.table_names
|
||||
table.enable_fts(["text", "country"])
|
||||
table.enable_fts(["text", "country"], fts_version="FTS4")
|
||||
assert [
|
||||
"searchable",
|
||||
"searchable_fts",
|
||||
"searchable_fts_data",
|
||||
"searchable_fts_idx",
|
||||
"searchable_fts_segments",
|
||||
"searchable_fts_segdir",
|
||||
"searchable_fts_docsize",
|
||||
"searchable_fts_config",
|
||||
"searchable_fts_stat",
|
||||
] == fresh_db.table_names
|
||||
assert [("tanuki are tricksters", "Japan", "foo")] == table.search("tanuki")
|
||||
assert [("racoons are trash pandas", "USA", "bar")] == table.search("usa")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue