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

Method test_commit

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

Source from the content-addressed store, hash-verified

206 self.assertTrue(con.NotSupportedError is drv.NotSupportedError)
207
208 def test_commit(self):
209 con = self._connect()
210 try:
211 # Commit must work, even if it doesn't do anything
212 con.commit()
213 finally:
214 con.close()
215
216 def test_rollback(self):
217 con = self._connect()

Callers

nothing calls this directly

Calls 2

_connectMethod · 0.95
closeMethod · 0.80

Tested by

no test coverage detected