(cls, connection)
| 758 | |
| 759 | @classmethod |
| 760 | def insert_data(cls, connection): |
| 761 | connection.execute( |
| 762 | cls.tables.a.insert(), |
| 763 | [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}], |
| 764 | ) |
| 765 | |
| 766 | connection.execute( |
| 767 | cls.tables.b.insert(), |
| 768 | [ |
| 769 | {"id": 1, "a_id": 1}, |
| 770 | {"id": 2, "a_id": 1}, |
| 771 | {"id": 4, "a_id": 2}, |
| 772 | {"id": 5, "a_id": 3}, |
| 773 | ], |
| 774 | ) |
| 775 | |
| 776 | def test_inner_join_fk(self): |
| 777 | a, b = self.tables("a", "b") |