MCPcopy
hub / github.com/psycopg/psycopg / test_text_literal

Method test_text_literal

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

Source from the content-addressed store, hash-verified

397 )
398
399 def test_text_literal(self, conn):
400 conn.adapters.register_dumper(str, StrDumper)
401 assert sql.Literal("foo").as_string(conn) == "'foo'"
402
403 @pytest.mark.crdb_skip("composite") # create type, actually
404 @pytest.mark.parametrize("name", ["a-b", f"{eur}", "order", "foo bar", "FooBar"])

Callers

nothing calls this directly

Calls 2

register_dumperMethod · 0.80
as_stringMethod · 0.45

Tested by

no test coverage detected