1
0
Fork 0

Merging upstream version 26.19.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:15:28 +02:00
parent 58527c3d26
commit a99682f526
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
98 changed files with 67345 additions and 65319 deletions

View file

@ -885,3 +885,13 @@ class TestExecutor(unittest.TestCase):
"avg_bill_length",
"avg_bill_depth",
]
def test_table_to_pylist(self):
columns = ["id", "product", "price"]
rows = [[1, "Shirt", 20.0], [2, "Shoes", 60.0]]
table = Table(columns=columns, rows=rows)
expected = [
{"id": 1, "product": "Shirt", "price": 20.0},
{"id": 2, "product": "Shoes", "price": 60.0},
]
self.assertEqual(table.to_pylist(), expected)