Adding upstream version 1.5.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d876ab618f
commit
0912fc1528
59 changed files with 7270 additions and 0 deletions
14
tests/test_prompt_utils.py
Normal file
14
tests/test_prompt_utils.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import click
|
||||
|
||||
from litecli.packages.prompt_utils import confirm_destructive_query
|
||||
|
||||
|
||||
def test_confirm_destructive_query_notty():
|
||||
stdin = click.get_text_stream("stdin")
|
||||
assert stdin.isatty() is False
|
||||
|
||||
sql = "drop database foo;"
|
||||
assert confirm_destructive_query(sql) is None
|
Loading…
Add table
Add a link
Reference in a new issue