From: Jérôme Date: Wed, 14 Oct 2020 09:00:41 +0000 (+0200) Subject: Update unitary test TestImport X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db2018197acbbcead13eb0e9ce62fc8000dac416;p=modules%2Fshaper.git Update unitary test TestImport --- diff --git a/src/ExchangePlugin/Test/TestImport.py b/src/ExchangePlugin/Test/TestImport.py index c7d16a453..67998ea22 100644 --- a/src/ExchangePlugin/Test/TestImport.py +++ b/src/ExchangePlugin/Test/TestImport.py @@ -156,22 +156,29 @@ if __name__ == '__main__': # Create a shape imported from STEP #========================================================================= shape_path = getShapePath("Step/screw.step") - testImport("STP", shape_path, 3.78827401738e-06, 10 ** -17) + testImport("STEP", shape_path, 3.78827401738e-06, 10 ** -17) shape_path = shutil.copyfile(shape_path, os.path.join(tmp_dir, "screw.stp")) testImport("STEP", shape_path, 3.78827401738e-06, 10 ** -17) #========================================================================= # Create a shape imported from IGES #========================================================================= shape_path = getShapePath("Iges/bearing.igs") - testImport("IGES", shape_path, 1.3407098545036494e-08, 10 ** -25) - shape_path = shutil.copyfile(shape_path, os.path.join(tmp_dir, "bearing.iges")) testImport("IGS", shape_path, 1.3407098545036494e-08, 10 ** -25) + shape_path = shutil.copyfile(shape_path, os.path.join(tmp_dir, "bearing.iges")) + testImport("IGES", shape_path, 1.3407098545036494e-08, 10 ** -25) #========================================================================= # Create a shape imported from XAO #========================================================================= testImportXAO() + #========================================================================= + # End of test + #========================================================================= + + from salome.shaper import model + assert(model.checkPythonDump()) + #========================================================================= # Check import errors #========================================================================= @@ -180,10 +187,3 @@ if __name__ == '__main__': testImport("BREP", shape_path, 0, 10 ** -25, True) shape_path = getShapePath("Xao/wrong_file.xao") testImport("XAO", shape_path, 0, 10 ** -25, True) - - #========================================================================= - # End of test - #========================================================================= - - from salome.shaper import model - assert(model.checkPythonDump())