-# Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
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()
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
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)