Adding upstream version 4.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6e38540406
commit
5f14fad9bf
42 changed files with 955 additions and 184 deletions
|
@ -7,4 +7,11 @@ def test_confirm_destructive_query_notty():
|
|||
stdin = click.get_text_stream("stdin")
|
||||
if not stdin.isatty():
|
||||
sql = "drop database foo;"
|
||||
assert confirm_destructive_query(sql, "all") is None
|
||||
assert confirm_destructive_query(sql, [], None) is None
|
||||
|
||||
|
||||
def test_confirm_destructive_query_with_alias():
|
||||
stdin = click.get_text_stream("stdin")
|
||||
if not stdin.isatty():
|
||||
sql = "drop database foo;"
|
||||
assert confirm_destructive_query(sql, ["drop"], "test") is None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue