mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Run black, and add black to a "qa" target to make it a standardised process.
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user