MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / insert_data

Method insert_data

lib/sqlalchemy/testing/suite/test_select.py:754–768  ·  view source on GitHub ↗
(cls, connection)

Source from the content-addressed store, hash-verified

752
753 @classmethod
754 def insert_data(cls, connection):
755 connection.execute(
756 cls.tables.a.insert(),
757 [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}],
758 )
759
760 connection.execute(
761 cls.tables.b.insert(),
762 [
763 {"id": 1, "a_id": 1},
764 {"id": 2, "a_id": 1},
765 {"id": 4, "a_id": 2},
766 {"id": 5, "a_id": 3},
767 ],
768 )
769
770 def test_inner_join_fk(self):
771 a, b = self.tables("a", "b")

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected