restore tests
This commit is contained in:
@ -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)
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user