MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / test_nextset

Method test_nextset

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

Source from the content-addressed store, hash-verified

729 # cur.execute("drop procedure deleteme")
730
731 def test_nextset(self):
732 con = self._connect()
733 try:
734 cur = con.cursor()
735 if not hasattr(cur, "nextset"):
736 return
737
738 try:
739 self.executeDDL1(cur)
740 sql = self._populate()
741 for sql in self._populate():
742 cur.execute(sql)
743
744 self.help_nextset_setUp(cur)
745
746 cur.callproc("deleteme")
747 numberofrows = cur.fetchone()
748 assert numberofrows[0] == len(self.samples)
749 assert cur.nextset()
750 names = cur.fetchall()
751 assert len(names) == len(self.samples)
752 s = cur.nextset()
753 assert s is None, "No more return sets, should return None"
754 finally:
755 self.help_nextset_tearDown(cur)
756
757 finally:
758 con.close()
759
760 def test_nextset(self): # noqa: F811
761 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