mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-29 05:14:28 +02:00
Correct spelling mistakes (found with codespell)
This commit is contained in:
parent
7a098aa0c5
commit
a174069da6
2 changed files with 4 additions and 4 deletions
|
|
@ -1218,7 +1218,7 @@ def test_drop_table_error():
|
||||||
)
|
)
|
||||||
assert 1 == result.exit_code
|
assert 1 == result.exit_code
|
||||||
assert 'Error: Table "t2" does not exist' == result.output.strip()
|
assert 'Error: Table "t2" does not exist' == result.output.strip()
|
||||||
# Using --ignore supresses that error
|
# Using --ignore suppresses that error
|
||||||
result = runner.invoke(
|
result = runner.invoke(
|
||||||
cli.cli,
|
cli.cli,
|
||||||
["drop-table", "test.db", "t2", "--ignore"],
|
["drop-table", "test.db", "t2", "--ignore"],
|
||||||
|
|
@ -1259,7 +1259,7 @@ def test_drop_view_error():
|
||||||
)
|
)
|
||||||
assert 1 == result.exit_code
|
assert 1 == result.exit_code
|
||||||
assert 'Error: View "t2" does not exist' == result.output.strip()
|
assert 'Error: View "t2" does not exist' == result.output.strip()
|
||||||
# Using --ignore supresses that error
|
# Using --ignore suppresses that error
|
||||||
result = runner.invoke(
|
result = runner.invoke(
|
||||||
cli.cli,
|
cli.cli,
|
||||||
["drop-view", "test.db", "t2", "--ignore"],
|
["drop-view", "test.db", "t2", "--ignore"],
|
||||||
|
|
@ -2014,7 +2014,7 @@ def test_insert_detect_types(tmpdir, option_or_env_var):
|
||||||
]
|
]
|
||||||
|
|
||||||
if option_or_env_var is None:
|
if option_or_env_var is None:
|
||||||
# Use environemnt variable instead of option
|
# Use environment variable instead of option
|
||||||
with mock.patch.dict(os.environ, {"SQLITE_UTILS_DETECT_TYPES": "1"}):
|
with mock.patch.dict(os.environ, {"SQLITE_UTILS_DETECT_TYPES": "1"}):
|
||||||
_test()
|
_test()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ def test_rebuild_fts(fresh_db):
|
||||||
}.items() <= rows[0].items()
|
}.items() <= rows[0].items()
|
||||||
# Insert another record
|
# Insert another record
|
||||||
table.insert(search_records[1])
|
table.insert(search_records[1])
|
||||||
# This should NOT show up in a searchs
|
# This should NOT show up in searches
|
||||||
assert len(list(table.search("are"))) == 1
|
assert len(list(table.search("are"))) == 1
|
||||||
# Running rebuild_fts() should fix it
|
# Running rebuild_fts() should fix it
|
||||||
table.rebuild_fts()
|
table.rebuild_fts()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue