MCPcopy
hub / github.com/psycopg/psycopg / test_dump

Function test_dump

tests/test_adapt.py:28–35  ·  view source on GitHub ↗
(data, format, result, type)

Source from the content-addressed store, hash-verified

26 ],
27)
28def test_dump(data, format, result, type):
29 t = Transformer()
30 dumper = t.get_dumper(data, format)
31 assert dumper.dump(data) == result
32 if type == "text" and format != PyFormat.BINARY:
33 assert dumper.oid == 0
34 else:
35 assert dumper.oid == builtins[type].oid
36
37
38@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

get_dumperMethod · 0.95
TransformerClass · 0.50
dumpMethod · 0.45

Tested by

no test coverage detected