MCPcopy Create free account
hub / github.com/psycopg/psycopg / test_as_string

Function test_as_string

tests/test_sql.py:639–641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637
638
639def test_as_string():
640 query = sql.as_string(sql.SQL("select {}").format("foo"))
641 assert query == no_e("select 'foo'")
642
643
644def test_as_string_context(conn):

Callers

nothing calls this directly

Calls 3

no_eFunction · 0.85
formatMethod · 0.80
as_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…