Fixing tool tests

This commit is contained in:
Andrej730
2023-06-20 16:44:57 +05:00
parent 4a9d1ff038
commit 2fbb9c569b
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -305,6 +305,9 @@ class TestGetDrawingCollection(NewFile):
collection = bpy.data.collections.new("Collection")
bpy.context.scene.collection.children.link(collection)
collection.objects.link(obj)
obj.BIMObjectProperties.collection = collection
collection.BIMCollectionProperties.obj = obj
element = ifc.createIfcAnnotation()
tool.Ifc.link(element, obj)
assert subject.get_drawing_collection(element) == collection