MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _test_empty_insert

Method _test_empty_insert

test/dialect/sqlite/test_dialect.py:565–573  ·  view source on GitHub ↗
(self, connection, table, expect=1)

Source from the content-addressed store, hash-verified

563 # empty insert was added as of sqlite 3.3.8.
564
565 def _test_empty_insert(self, connection, table, expect=1):
566 try:
567 table.create(connection)
568 for wanted in expect, expect * 2:
569 connection.execute(table.insert())
570 rows = connection.execute(table.select()).fetchall()
571 eq_(len(rows), wanted)
572 finally:
573 table.drop(connection)
574
575 def test_empty_insert_pk1(self, connection):
576 self._test_empty_insert(

Callers 4

test_empty_insert_pk1Method · 0.95
test_empty_insert_pk4Method · 0.95

Calls 7

eq_Function · 0.90
createMethod · 0.45
executeMethod · 0.45
insertMethod · 0.45
fetchallMethod · 0.45
selectMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected