MCPcopy
hub / github.com/psycopg/psycopg / test_join

Method test_join

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

Source from the content-addressed store, hash-verified

531 assert sql.Composed(L) != sql.Composed(l2)
532
533 def test_join(self, conn):
534 obj = sql.Composed([sql.Literal("foo"), sql.Identifier("b'ar")])
535 obj = obj.join(", ")
536 assert isinstance(obj, sql.Composed)
537 assert no_e(obj.as_string(conn)) == "'foo', \"b'ar\""
538
539 def test_auto_literal(self, conn):
540 obj = sql.Composed(["fo'o", dt.date(2020, 1, 1)])

Callers

nothing calls this directly

Calls 3

joinMethod · 0.95
no_eFunction · 0.85
as_stringMethod · 0.45

Tested by

no test coverage detected