Skip to content
Snippets Groups Projects
Verified Commit 210fbc41 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

TEST: Added unit test.

Also added link to issue in changelog.
parent 3d01edca
No related branches found
No related tags found
2 merge requests!100WIP: Filling XLSX: Seems to be working.,!99FIX: `to_table` failed on lists
Pipeline #50255 failed
......@@ -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 ###
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment