mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-26 10:54:32 +02:00
Test for --drop error without --output or --multi
This commit is contained in:
parent
eef46da8f5
commit
3532bcca97
1 changed files with 7 additions and 0 deletions
|
|
@ -403,3 +403,10 @@ def test_recipe_jsonsplit_output(fresh_db_and_path, drop):
|
|||
if drop:
|
||||
del expected["records"]
|
||||
assert db["example"].get(1) == expected
|
||||
|
||||
|
||||
def test_cannot_use_drop_without_multi_or_output(fresh_db_and_path):
|
||||
args = ["convert", fresh_db_and_path[1], "example", "records", "value", "--drop"]
|
||||
result = CliRunner().invoke(cli.cli, args)
|
||||
assert result.exit_code == 1, result.output
|
||||
assert "Error: --drop can only be used with --output or --multi" in result.output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue