From: vsr Date: Fri, 5 Nov 2021 12:59:38 +0000 (+0300) Subject: [bos #26444] Fix tests X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e1d41446840e8663eb9a86fe546e6c2898f2d511;p=modules%2Fshaper.git [bos #26444] Fix tests --- diff --git a/src/ParametersPlugin/CMakeLists.txt b/src/ParametersPlugin/CMakeLists.txt index 4244e870b..bd37033bd 100644 --- a/src/ParametersPlugin/CMakeLists.txt +++ b/src/ParametersPlugin/CMakeLists.txt @@ -137,5 +137,5 @@ if(${HAVE_SALOME}) endforeach(tfile ${TEST_NAMES}) install(FILES ${TMP_TESTS_NAMES} DESTINATION ${TEST_INSTALL_DIRECTORY}) - install(DIRECTORY data DESTINATION ${TEST_INSTALL_DIRECTORY}) + install(DIRECTORY Test/data DESTINATION ${TEST_INSTALL_DIRECTORY}) endif(${HAVE_SALOME}) diff --git a/src/ParametersPlugin/Test/TestImportInvalidParameters.py b/src/ParametersPlugin/Test/TestImportInvalidParameters.py index 1eac0e9f7..9faf17069 100644 --- a/src/ParametersPlugin/Test/TestImportInvalidParameters.py +++ b/src/ParametersPlugin/Test/TestImportInvalidParameters.py @@ -18,7 +18,7 @@ # from salome.shaper import model -import os, sys +import inspect, os, sys from PyQt5.Qt import QApplication diff --git a/src/ParametersPlugin/Test/TestImportParameters.py b/src/ParametersPlugin/Test/TestImportParameters.py index a09a45202..0a17a0f24 100644 --- a/src/ParametersPlugin/Test/TestImportParameters.py +++ b/src/ParametersPlugin/Test/TestImportParameters.py @@ -18,7 +18,7 @@ # from salome.shaper import model -import os +import inspect, os from PyQt5.Qt import QApplication diff --git a/src/ParametersPlugin/Test/data/invalid_parameters.txt b/src/ParametersPlugin/Test/data/invalid_parameters.txt new file mode 100644 index 000000000..c119a86f8 --- /dev/null +++ b/src/ParametersPlugin/Test/data/invalid_parameters.txt @@ -0,0 +1,5 @@ +Hauteur Longueur*Largeur + +Largeur3 #Comment +# Comment + # Comm diff --git a/src/ParametersPlugin/Test/data/parameters.txt b/src/ParametersPlugin/Test/data/parameters.txt new file mode 100644 index 000000000..ca3185fdb --- /dev/null +++ b/src/ParametersPlugin/Test/data/parameters.txt @@ -0,0 +1,5 @@ +Longueur 36. # "Longueur de la pièce" +Largeur 24. # Largeur de la pièce +Hauteur Longueur*Largeur +A12 5. * 5. +Longueur2 36. #\"Comment\" #Comm #Comm \ No newline at end of file diff --git a/src/ParametersPlugin/data/invalid_parameters.txt b/src/ParametersPlugin/data/invalid_parameters.txt deleted file mode 100644 index c119a86f8..000000000 --- a/src/ParametersPlugin/data/invalid_parameters.txt +++ /dev/null @@ -1,5 +0,0 @@ -Hauteur Longueur*Largeur - -Largeur3 #Comment -# Comment - # Comm diff --git a/src/ParametersPlugin/data/parameters.txt b/src/ParametersPlugin/data/parameters.txt deleted file mode 100644 index ca3185fdb..000000000 --- a/src/ParametersPlugin/data/parameters.txt +++ /dev/null @@ -1,5 +0,0 @@ -Longueur 36. # "Longueur de la pièce" -Largeur 24. # Largeur de la pièce -Hauteur Longueur*Largeur -A12 5. * 5. -Longueur2 36. #\"Comment\" #Comm #Comm \ No newline at end of file