Salome HOME
Update tests for python 3 + remove study
[plugins/hybridplugin.git] / tests / layers_imprinting.py
index 8ce327cef8a6975cf767755732155483b2848806..dfde509f8ae541d41c87dba213e5db9cb5113a40 100644 (file)
@@ -4,7 +4,6 @@ import sys
 import salome
 
 salome.salome_init()
-theStudy = salome.myStudy
 
 ###
 ### GEOM component
@@ -16,7 +15,7 @@ import math
 import SALOMEDS
 
 
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
 
 # first cylinder
 r1 = 0.5
@@ -79,7 +78,7 @@ from salome.smesh import smeshBuilder
 from salome.StdMeshers import StdMeshersBuilder
 from salome.HYBRIDPlugin import HYBRIDPluginBuilder
 
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
 
 
 # Viscous layers without imprinting
@@ -238,5 +237,3 @@ for name in faces_imprinted:
   area_error_3 = abs(smesh.GetArea(gr_2)-smesh.GetArea(gr_3))/smesh.GetArea(gr_2)
   assert area_error_3 < 1e-10
 
-if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)