MCPcopy
hub / github.com/psycopg/psycopg / test_setoutputsize_basic

Method test_setoutputsize_basic

tests/dbapi20.py:789–798  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

787 con.close()
788
789 def test_setoutputsize_basic(self):
790 # Basic test is to make sure setoutputsize doesn't blow up
791 con = self._connect()
792 try:
793 cur = con.cursor()
794 cur.setoutputsize(1000)
795 cur.setoutputsize(2000,0)
796 self._paraminsert(cur) # Make sure the cursor still works
797 finally:
798 con.close()
799
800 def test_setoutputsize(self):
801 # Real test for setoutputsize is driver dependent

Callers

nothing calls this directly

Calls 5

_connectMethod · 0.95
_paraminsertMethod · 0.95
setoutputsizeMethod · 0.80
cursorMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected