Run black on IOS-Python

This commit is contained in:
Dion Moult
2024-07-26 12:00:28 +10:00
parent d51fa2c5f7
commit a6286293d8
83 changed files with 603 additions and 637 deletions
@@ -57,9 +57,7 @@ class TestAssignDeclaration(test.bootstrap.IFC4):
def test_that_old_relationships_are_updated_if_they_still_contain_elements(self):
element_type = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcWallType")
library = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcProjectLibrary")
ifcopenshell.api.project.assign_declaration(
self.file, definitions=[element_type], relating_context=library
)
ifcopenshell.api.project.assign_declaration(self.file, definitions=[element_type], relating_context=library)
rel = self.file.by_type("IfcRelDeclares")[0]
element_type2 = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcWallType")
@@ -61,9 +61,7 @@ class TestUnassignDeclaration(test.bootstrap.IFC4):
element_type1 = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcWallType")
element_type2 = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcWallType")
element_type3 = ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcWallType")
ifcopenshell.api.project.assign_declaration(
self.file, definitions=[element_type1], relating_context=library
)
ifcopenshell.api.project.assign_declaration(self.file, definitions=[element_type1], relating_context=library)
rel = self.file.by_type("IfcRelDeclares")[0]
ifcopenshell.api.project.assign_declaration(