1
0
Fork 0
litecli/tests/test_prompt_utils.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
314 B
Python
Raw Permalink Normal View History

# -*- 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