mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-30 04:44:32 +02:00
duplicate --ignore option, refs #450
This commit is contained in:
parent
5fa823f03f
commit
b9a89a0f2c
3 changed files with 12 additions and 2 deletions
|
|
@ -2180,6 +2180,13 @@ def test_duplicate_table(tmpdir):
|
|||
)
|
||||
assert result_error.exit_code == 1
|
||||
assert result_error.output == 'Error: Table "missing" does not exist\n'
|
||||
# And check --ignore works
|
||||
result_error2 = CliRunner().invoke(
|
||||
cli.cli,
|
||||
["duplicate", db_path, "missing", "two", "--ignore"],
|
||||
catch_exceptions=False,
|
||||
)
|
||||
assert result_error2.exit_code == 0
|
||||
# Now try for a table that exists
|
||||
result = CliRunner().invoke(
|
||||
cli.cli,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue