Progress bar for insert works now

This commit is contained in:
Simon Willison 2020-10-27 11:07:06 -07:00
commit 2f38660d48
2 changed files with 12 additions and 15 deletions

View file

@ -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"], catch_exceptions=False
cli.cli,
["insert", db_path, "places", csv_path, "--csv"],
catch_exceptions=False,
)
assert bad_result.exit_code == 1
assert (
@ -1651,7 +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
catch_exceptions=False,
)
assert good_result.exit_code == 0
db = Database(db_path)