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

Function test_confirm_destructive_query_with_alias

tests/test_prompt_utils.py:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_confirm_destructive_query_with_alias():
14 stdin = click.get_text_stream("stdin")
15 if not stdin.isatty():
16 sql = "drop database foo;"
17 assert confirm_destructive_query(sql, ["drop"], "test") is None

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected