From b55ac88c9ded829973f0d55f69e17b96f34a4589 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 15 Mar 2023 19:39:54 +0500 Subject: [PATCH] Fixing tests after 9f7db386a TestExportTextLiteralAttributes and TestImportTextAttributes was failing because now we're assuming that BoxAlignment will have 1 of values from the list below and not "BoxAlignment" "top-left", "top-middle", "top-right", "middle-left", "center", "middle-right", "bottom-left", "bottom-middle", "bottom-right" --- src/blenderbim/test/tool/test_drawing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/test/tool/test_drawing.py b/src/blenderbim/test/tool/test_drawing.py index a7d3c3960b..7abfa86315 100644 --- a/src/blenderbim/test/tool/test_drawing.py +++ b/src/blenderbim/test/tool/test_drawing.py @@ -207,7 +207,7 @@ class TestExportTextLiteralAttributes(NewFile): assert subject.export_text_literal_attributes(bpy.data.objects.get("Object")) == { "Literal": "Literal", "Path": "RIGHT", - "BoxAlignment": "BoxAlignment", + "BoxAlignment": "bottom-left", } @@ -513,7 +513,7 @@ class TestImportTextAttributes(NewFile): element = ifc.createIfcAnnotation() element.Representation = ifc.createIfcProductDefinitionShape() context = ifc.createIfcGeometricRepresentationSubContext(ContextType="Plan", ContextIdentifier="Annotation") - item = ifc.createIfcTextLiteralWithExtent(Literal="Literal", Path="RIGHT", BoxAlignment="BoxAlignment") + item = ifc.createIfcTextLiteralWithExtent(Literal="Literal", Path="RIGHT", BoxAlignment="bottom-left") representation = ifc.createIfcShapeRepresentation(ContextOfItems=context, Items=[item]) element.Representation.Representations = [representation] tool.Ifc.link(element, obj) @@ -521,7 +521,7 @@ class TestImportTextAttributes(NewFile): props = obj.BIMTextProperties assert props.attributes.get("Literal").string_value == "Literal" assert props.attributes.get("Path").enum_value == "RIGHT" - assert props.attributes.get("BoxAlignment").string_value == "BoxAlignment" + assert props.attributes.get("BoxAlignment").string_value == "bottom-left" class TestImportAssignedProduct(NewFile):