(cls, connection)
| 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") |