mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Don't assume -1 for error code
This commit is contained in:
parent
6d25f648ed
commit
05a85b358f
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ def test_create_index(db_path):
|
|||
)
|
||||
] == db["Gosh2"].indexes
|
||||
# Trying to create the same index should fail
|
||||
assert -1 == CliRunner().invoke(cli.cli, create_index_unique_args).exit_code
|
||||
assert 0 != CliRunner().invoke(cli.cli, create_index_unique_args).exit_code
|
||||
# ... unless we use --if-not-exists
|
||||
assert (
|
||||
0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue