Adding upstream version 3.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f2184ff4ed
commit
ec5391b244
104 changed files with 15144 additions and 0 deletions
10
tests/test_prompt_utils.py
Normal file
10
tests/test_prompt_utils.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import click
|
||||
|
||||
from pgcli.packages.prompt_utils import confirm_destructive_query
|
||||
|
||||
|
||||
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) is None
|
Loading…
Add table
Add a link
Reference in a new issue