(cls, connection)
| 115 | |
| 116 | @classmethod |
| 117 | def insert_data(cls, connection): |
| 118 | connection.execute( |
| 119 | cls.tables.some_table.insert(), |
| 120 | [ |
| 121 | {"id": 1, "x": 1, "y": 2, "q": "q1", "p": "p3"}, |
| 122 | {"id": 2, "x": 2, "y": 3, "q": "q2", "p": "p2"}, |
| 123 | {"id": 3, "x": 3, "y": 4, "q": "q3", "p": "p1"}, |
| 124 | ], |
| 125 | ) |
| 126 | |
| 127 | def _assert_result(self, select, result): |
| 128 | with config.db.connect() as conn: |