mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Minor IfcTester fixes
This commit is contained in:
@@ -693,7 +693,7 @@ class Material(Facet):
|
|||||||
"All data with a material",
|
"All data with a material",
|
||||||
]
|
]
|
||||||
self.requirement_templates = [
|
self.requirement_templates = [
|
||||||
"Shall shall have a material of {value}",
|
"Shall have a material of {value}",
|
||||||
"Shall have a material",
|
"Shall have a material",
|
||||||
]
|
]
|
||||||
super().__init__(value, uri, minOccurs, maxOccurs, instructions)
|
super().__init__(value, uri, minOccurs, maxOccurs, instructions)
|
||||||
@@ -745,9 +745,9 @@ class Material(Facet):
|
|||||||
|
|
||||||
|
|
||||||
class Restriction:
|
class Restriction:
|
||||||
def __init__(self, options={}, base="string"):
|
def __init__(self, options=None, base="string"):
|
||||||
self.base = base
|
self.base = base
|
||||||
self.options = options
|
self.options = options or {}
|
||||||
|
|
||||||
def parse(self, ids_dict):
|
def parse(self, ids_dict):
|
||||||
if not ids_dict:
|
if not ids_dict:
|
||||||
|
|||||||
Reference in New Issue
Block a user