Salome HOME
cc27dd4bac7486b4313bd794c198d6bd3429ba4b
[modules/med.git] / src / MEDCalc / test / gui / test_scalarmap.py
1 # Copyright (C) 2011-2022  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 """ Test of the scalarmap.
21
22 This script is to be passed as an argument of the ./salome command and will be executed within the SALOME
23 Python console.
24 """
25
26 import os, sys
27 import SalomePyQt
28
29 from medcalc_testutils import GetScenarioDirGUI
30
31 sgPyQt = SalomePyQt.SalomePyQt()
32 sgPyQt.activateModule('MED')
33
34 import medcalc  # After module activation !!
35 localTestDir = sys.argv[1]
36 medcalc.PlayQtTestingScenario(os.path.join(localTestDir, 'test_scalarmap.xml'))
37
38 medcalc.RequestSALOMETermination()  # not equivalent to quit()!