mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-28 21:04:13 +02:00
Use parametrize for FTS test
This commit is contained in:
parent
2dca2210d9
commit
42440d6345
1 changed files with 26 additions and 26 deletions
|
|
@ -180,8 +180,8 @@ def test_populate_fts_escape_table_names(fresh_db):
|
||||||
] == list(table.search("usa"))
|
] == list(table.search("usa"))
|
||||||
|
|
||||||
|
|
||||||
def test_fts_tokenize(fresh_db):
|
@pytest.mark.parametrize("fts_version", ("4", "5"))
|
||||||
for fts_version in ("4", "5"):
|
def test_fts_tokenize(fresh_db, fts_version):
|
||||||
table_name = "searchable_{}".format(fts_version)
|
table_name = "searchable_{}".format(fts_version)
|
||||||
table = fresh_db[table_name]
|
table = fresh_db[table_name]
|
||||||
table.insert_all(search_records)
|
table.insert_all(search_records)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue