MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_confirm_destructive_query_notty

Function test_confirm_destructive_query_notty

tests/test_prompt_utils.py:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_confirm_destructive_query_notty():
7 stdin = click.get_text_stream("stdin")
8 if not stdin.isatty():
9 sql = "drop database foo;"
10 assert confirm_destructive_query(sql, [], None) is None
11
12
13def test_confirm_destructive_query_with_alias():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected