1
0
Fork 0

Adding upstream version 1.5.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 17:37:21 +01:00
parent d876ab618f
commit 0912fc1528
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
59 changed files with 7270 additions and 0 deletions

View 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