MCPcopy
hub / github.com/psycopg/psycopg / test_compose_empty

Method test_compose_empty

tests/test_sql.py:119–122  ·  view source on GitHub ↗
(self, conn)

Source from the content-addressed store, hash-verified

117 assert s1 == "select '2016-12-31'::date;"
118
119 def test_compose_empty(self, conn):
120 s = sql.SQL("select foo;").format()
121 s1 = s.as_string(conn)
122 assert s1 == "select foo;"
123
124 def test_percent_escape(self, conn):
125 s = sql.SQL("42 % {0}").format(sql.Literal(7))

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
as_stringMethod · 0.45

Tested by

no test coverage detected