MCPcopy
hub / github.com/psycopg/psycopg / test_as_string

Method test_as_string

tests/test_sql.py:336–340  ·  view source on GitHub ↗
(self, conn, obj, want)

Source from the content-addressed store, hash-verified

334
335 @pytest.mark.parametrize("obj, want", _params)
336 def test_as_string(self, conn, obj, want):
337 got = sql.Literal(obj).as_string(conn)
338 if isinstance(obj, str):
339 got = no_e(got)
340 assert got == want
341
342 @pytest.mark.parametrize("obj, want", _params)
343 def test_as_bytes(self, conn, obj, want):

Callers

nothing calls this directly

Calls 2

no_eFunction · 0.85
as_stringMethod · 0.45

Tested by

no test coverage detected