mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
Fix more failing tests.
This commit is contained in:
@@ -160,11 +160,12 @@ class TestSetObjectName(NewFile):
|
||||
obj = bpy.data.objects.new("Object", bpy.data.meshes.new("Mesh"))
|
||||
element = ifc.createIfcWall()
|
||||
subject.set_object_name(obj, element)
|
||||
assert obj.name == "IfcWall/Object"
|
||||
assert obj.name == "IfcWall/Unnamed"
|
||||
|
||||
def test_existing_ifc_prefixes_are_not_repeated(self):
|
||||
def test_existing_blender_names_are_ignored(self):
|
||||
ifc = ifcopenshell.file()
|
||||
obj = bpy.data.objects.new("IfcSlab/Object", bpy.data.meshes.new("Mesh"))
|
||||
element = ifc.createIfcWall()
|
||||
element.Name = "Foobar"
|
||||
subject.set_object_name(obj, element)
|
||||
assert obj.name == "IfcWall/Object"
|
||||
assert obj.name == "IfcWall/Foobar"
|
||||
|
||||
Reference in New Issue
Block a user