X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConnectorAPI%2FTest%2FTestExportToGEOMPartSet.py;h=e5e6f12698f5d81aa657e7afa1d13c00496e14bb;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=1fa41b8f5b77c5939eaa843521efe9e3d4cbb574;hpb=ae22b2839c86140140182bd6d2277ea4d9d105e0;p=modules%2Fshaper.git diff --git a/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py b/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py index 1fa41b8f5..e5e6f1269 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py +++ b/src/ConnectorAPI/Test/TestExportToGEOMPartSet.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# Copyright (C) 2014-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,11 +21,12 @@ import salome from ModelAPI import * from salome.shaper import model -from salome.geom import geomBuilder import os import tempfile +salome.standalone() +from salome.geom import geomBuilder salome.salome_init(1) geompy = geomBuilder.New() @@ -114,7 +115,7 @@ model.begin() model.exportToGEOM(Part_1_doc) model.end() -# check that in GEOM module there are reuslts: +# check that in GEOM module there are results: # extrusion of the first part # extrusion with group of the second part # extrusion with filed of the third part @@ -141,7 +142,7 @@ assert(geompy.NumberOfSubShapes(shape3, geompy.ShapeType["VERTEX"]) == 3) field = salome.ObjectToSObject(shape3).FindSubObject(1)[1].GetObject() assert(field) assert(field.GetName() == "Field_1") -assert(field.GetSteps() == [0, 1]) +assert(field.GetSteps() == [1, 2]) shape4 = getGEOMShape(3) assert(not shape4)