Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_no_ops(self):
conn = self.connect()
cursor = conn.cursor()
self.assertEqual(cursor.rowcount, -1)
cursor.setinputsizes([])
cursor.setoutputsize(1, 'blah')
self.assertRaises(NotSupportedError, lambda: cursor.executemany(
'SELECT * FROM one_row', []))
conn.commit()
self.assertRaises(NotSupportedError, lambda: conn.rollback())
cursor.close()
conn.close()
def test_no_ops(self):
conn = self.connect()
cursor = conn.cursor()
self.assertEqual(cursor.rowcount, -1)
cursor.setinputsizes([])
cursor.setoutputsize(1, 'blah')
self.assertRaises(NotSupportedError, lambda: cursor.executemany(
'SELECT * FROM one_row', []))
conn.commit()
self.assertRaises(NotSupportedError, lambda: conn.rollback())
cursor.close()
conn.close()
def test_no_ops(self):
conn = self.connect()
cursor = conn.cursor(AsyncCursor)
self.assertRaises(NotSupportedError, lambda: cursor.executemany(
'SELECT * FROM one_row', []))
cursor.close()
conn.close()
def test_no_ops(self):
conn = self.connect()
cursor = conn.cursor(AsyncCursor)
self.assertRaises(NotSupportedError, lambda: cursor.executemany(
'SELECT * FROM one_row', []))
cursor.close()
conn.close()
def test_no_ops(self):
conn = self.connect()
cursor = conn.cursor(PandasCursor)
self.assertRaises(NotSupportedError, lambda: cursor.executemany(
'SELECT * FROM one_row', []))
cursor.close()
conn.close()
def executemany(self, operation, seq_of_parameters):
raise NotSupportedError
def executemany(self, operation, seq_of_parameters):
raise NotSupportedError
def executemany(self, operation, seq_of_parameters):
raise NotSupportedError
def rollback(self):
raise NotSupportedError