Skip to content
Snippets Groups Projects
Commit a754bd9f authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix and test

parent c0777070
No related branches found
No related tags found
2 merge requests!22Release 0.3,!14F fix list
Pipeline #10436 passed with warnings
......@@ -301,7 +301,7 @@ class Parser(object):
self.model[ent_name].add_property(
name=n,
importance=importance,
datatype=_get_listdatatype(e["datatype"]))
datatype=db.LIST(_get_listdatatype(e["datatype"])))
else:
self.model[ent_name].add_property(name=n,
importance=importance)
......
......@@ -224,7 +224,10 @@ B:
c:
datatype: INTEGER
"""
parse_model_from_yaml(to_file(string_list))
model = parse_model_from_yaml(to_file(string_list))
print(model)
self.assertTrue(isinstance(model['A'], db.RecordType))
self.assertEqual(model['A'].properties[0].datatype, db.LIST("B"))
class ParserTest(unittest.TestCase):
......
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