diff --git a/CHANGELOG.md b/CHANGELOG.md index 889e81a9f12191913c8fa6d5b016fec0d044ff82..2dbc1ee2c333b968af69e7d7a83ec60fe281e6b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### - Json schema exporter handles reference properties better. -- `to_table` failed on lists as values. +- [#59](https://gitlab.com/linkahead/linkahead-advanced-user-tools/-/issues/59) `to_table` failed on lists as values. ### Security ### diff --git a/unittests/test_table_converter.py b/unittests/test_table_converter.py index dbf593de4b63e031777c109c26b971171e660638..6a3b0dda45abab28198f29a5b013f25cd0920524 100644 --- a/unittests/test_table_converter.py +++ b/unittests/test_table_converter.py @@ -65,6 +65,18 @@ class TableTest(unittest.TestCase): c.extend([r1, r2]) self.assertRaises(ValueError, to_table, c) + def test_list(self): + r1 = db.Record() + r1.add_parent("no1") + r1.add_property("p1") + r2 = db.Record() + r2.add_parent("no1") + r2.add_property("p1") + r2.add_property("p2", value=[1, 2]) + c = db.Container() + c.extend([r1, r2]) + to_table(c) + class FromTsvTest(unittest.TestCase): def test_basic(self):