Fix #1956. One-button upgrade from IFC2X3 to IFC4.

This commit is contained in:
Dion Moult
2022-01-17 16:20:01 +11:00
parent 1a735c4bef
commit 9ebe0aaa95
18 changed files with 206 additions and 24 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ class TestAddBrick:
brick.add_brick_from_element("element", "namespace", "brick_class").should_be_called().will_return("brick_uri")
brick.run_assign_brick_reference(element="element", library="library", brick_uri="brick_uri").should_be_called()
brick.run_refresh_brick_viewer().should_be_called()
subject.add_brick(ifc, brick, element="element", namespace="namespace", brick_class="brick_class", library="library")
subject.add_brick(
ifc, brick, element="element", namespace="namespace", brick_class="brick_class", library="library"
)
def test_adding_a_plain_brick(self, ifc, brick):
brick.add_brick("namespace", "brick_class").should_be_called()