MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / test_nextset

Method test_nextset

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

Source from the content-addressed store, hash-verified

722 #cur.execute("drop procedure deleteme")
723
724 def test_nextset(self):
725 con = self._connect()
726 try:
727 cur = con.cursor()
728 if not hasattr(cur,'nextset'):
729 return
730
731 try:
732 self.executeDDL1(cur)
733 sql=self._populate()
734 for sql in self._populate():
735 cur.execute(sql)
736
737 self.help_nextset_setUp(cur)
738
739 cur.callproc('deleteme')
740 numberofrows=cur.fetchone()
741 assert numberofrows[0]== len(self.samples)
742 assert cur.nextset()
743 names=cur.fetchall()
744 assert len(names) == len(self.samples)
745 s=cur.nextset()
746 assert s == None,'No more return sets, should return None'
747 finally:
748 self.help_nextset_tearDown(cur)
749
750 finally:
751 con.close()
752
753 def test_nextset(self):
754 raise NotImplementedError('Drivers need to override this test')

Callers

nothing calls this directly

Calls 12

_connectMethod · 0.95
executeDDL1Method · 0.95
_populateMethod · 0.95
help_nextset_setUpMethod · 0.95
help_nextset_tearDownMethod · 0.95
cursorMethod · 0.80
executeMethod · 0.80
callprocMethod · 0.80
nextsetMethod · 0.80
closeMethod · 0.80
fetchoneMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected