restore tests

This commit is contained in:
2020-12-24 17:37:14 +01:00
parent d395f4a17b
commit f9885a023c
32 changed files with 250 additions and 34 deletions

View File

@ -396,7 +396,7 @@ class ConstrainteAnnotator:
# build choice
variable.choice = []
if isinstance(values, str):
choice = self.objectspace.choice()
choice = self.objectspace.choice(variable.xmlfiles)
choice.type = 'calculation'
choice.name = values
variable.choice.append(choice)

View File

@ -480,10 +480,10 @@ class Family(Common):
if 'properties' in self.attrib:
self.attrib['properties'] = "'" + "', '".join(sorted(list(self.attrib['properties']))) + "'"
if hasattr(self.elt, 'property'):
#self.attrib['properties'] = ''
for child in self.elt.property:
self.populate_properties(child)
if not self.attrib['properties']:
# remove empty property
del self.attrib['properties']
def get_object_name(self):