MCPcopy
hub / github.com/psycopg/psycopg / test_str

Function test_str

tests/test_copy_async.py:734–740  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

732
733
734async def test_str(aconn):
735 cur = aconn.cursor()
736 async with cur.copy("copy (select 1) to stdout") as copy:
737 assert "[ACTIVE]" in str(copy)
738 await alist(copy)
739
740 assert "[INTRANS]" in str(copy)
741
742
743async def test_description(aconn):

Callers

nothing calls this directly

Calls 3

alistFunction · 0.85
cursorMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected