mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Progress bar for sqlite-utils insert command, closes #173
This commit is contained in:
parent
c7e5dd6451
commit
f99a236529
4 changed files with 41 additions and 5 deletions
|
|
@ -1640,7 +1640,9 @@ def test_insert_encoding(tmpdir):
|
|||
open(csv_path, "wb").write(latin1_csv)
|
||||
# First attempt should error:
|
||||
bad_result = CliRunner().invoke(
|
||||
cli.cli, ["insert", db_path, "places", csv_path, "--csv"]
|
||||
cli.cli,
|
||||
["insert", db_path, "places", csv_path, "--csv"],
|
||||
catch_exceptions=False,
|
||||
)
|
||||
assert bad_result.exit_code == 1
|
||||
assert (
|
||||
|
|
@ -1651,6 +1653,7 @@ def test_insert_encoding(tmpdir):
|
|||
good_result = CliRunner().invoke(
|
||||
cli.cli,
|
||||
["insert", db_path, "places", csv_path, "--encoding", "latin-1", "--csv"],
|
||||
catch_exceptions=False,
|
||||
)
|
||||
assert good_result.exit_code == 0
|
||||
db = Database(db_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue