Run black, and add black to a "qa" target to make it a standardised process.

This commit is contained in:
Dion Moult
2021-09-09 21:27:23 +10:00
parent 95903c965d
commit 865c0f4895
305 changed files with 1968 additions and 1143 deletions
@@ -1,6 +1,7 @@
import test.bootstrap
import ifcopenshell.api
class TestRemoveOpening(test.bootstrap.IFC4):
def test_removing_a_simple_opening(self):
opening = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcOpeningElement")
+1 -1
View File
@@ -83,7 +83,7 @@ class TestTransaction(test.bootstrap.IFC4):
assert len(rel.RelatedObjects) == 0
def test_the_editing_of_invalid_default_values(self):
element = self.file.createIfcWall() # This element is invalid, as GlobalId is None
element = self.file.createIfcWall() # This element is invalid, as GlobalId is None
self.file.begin_transaction()
element.GlobalId = "id"
self.file.end_transaction()