black format

This commit is contained in:
Andrej730
2024-04-05 16:05:11 +05:00
parent 02aaf1b409
commit 78abca16e6
6 changed files with 47 additions and 66 deletions
@@ -196,8 +196,14 @@ class TestCopyClass(test.bootstrap.IFC4):
new = ifcopenshell.api.run("root.copy_class", self.file, product=element)
assert new.HasAssociations[0].RelatingMaterial.is_a("IfcMaterialLayerSet")
assert new.HasAssociations[0].RelatingMaterial != element.HasAssociations[0].RelatingMaterial
assert new.HasAssociations[0].RelatingMaterial.MaterialLayers[0] != element.HasAssociations[0].RelatingMaterial.MaterialLayers[0]
assert new.HasAssociations[0].RelatingMaterial.MaterialLayers[0].Material == element.HasAssociations[0].RelatingMaterial.MaterialLayers[0].Material
assert (
new.HasAssociations[0].RelatingMaterial.MaterialLayers[0]
!= element.HasAssociations[0].RelatingMaterial.MaterialLayers[0]
)
assert (
new.HasAssociations[0].RelatingMaterial.MaterialLayers[0].Material
== element.HasAssociations[0].RelatingMaterial.MaterialLayers[0].Material
)
def test_copying_a_type_and_purging_type_relationships(self):
type = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWallType")