Minor cleanup to Brick code after failed attempt to detect feed relationships.

This commit is contained in:
Dion Moult
2022-01-14 11:47:58 +11:00
parent d23d382854
commit 5a87ab8171
6 changed files with 49 additions and 61 deletions
+2 -4
View File
@@ -238,15 +238,13 @@ class TestGetBrickifcProject(NewFile):
)
class TestGetConvertableBrickObjectsAndElements(NewFile):
class TestGetConvertableBrickElements(NewFile):
def test_run(self):
ifc = ifcopenshell.file()
tool.Ifc.set(ifc)
element = ifc.createIfcAirTerminalBox()
obj = bpy.data.objects.new("Object", None)
tool.Ifc.link(element, obj)
ifc.createIfcWall()
assert subject.get_convertable_brick_objects_and_elements() == [(obj, element)]
assert subject.get_convertable_brick_elements() == {element}
class TestGetItemClass(NewFile):