mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #4490. Fix fundamental bug where get_pset would return none for inherited props with a boolean False value.
This commit is contained in:
@@ -68,6 +68,9 @@ class TestGetPsetIFC4(test.bootstrap.IFC4):
|
||||
assert subject.get_pset(element, "name", "a") == 2
|
||||
assert subject.get_pset(element, "name", "x") == 1
|
||||
assert subject.get_pset(element, "name", "b") == 3
|
||||
pset = ifcopenshell.api.run("pset.add_pset", self.file, product=type_element, name="name2")
|
||||
ifcopenshell.api.run("pset.edit_pset", self.file, pset=pset, properties={"z": False})
|
||||
assert subject.get_pset(element, "name2", "z") is False
|
||||
|
||||
def test_excluding_inherited_psets(self):
|
||||
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWall")
|
||||
|
||||
Reference in New Issue
Block a user