mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Improved test_create_index_analyze test, refs #378
This commit is contained in:
parent
0d10402f7b
commit
0142c2a3c2
1 changed files with 3 additions and 0 deletions
|
|
@ -780,6 +780,9 @@ def test_create_index_analyze(fresh_db):
|
|||
dogs.insert({"name": "Cleo", "twitter": "cleopaws"})
|
||||
dogs.create_index(["name"], analyze=True)
|
||||
assert "sqlite_stat1" in fresh_db.table_names()
|
||||
assert list(fresh_db["sqlite_stat1"].rows) == [
|
||||
{"tbl": "dogs", "idx": "idx_dogs_name", "stat": "1 1"}
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue