Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1916: Fatal error when create sketch on body Remove subshapes
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
Test
/
TestExtrusion.py
diff --git
a/src/FeaturesPlugin/Test/TestExtrusion.py
b/src/FeaturesPlugin/Test/TestExtrusion.py
index da1d1f953323261304a5efe51a583ecce7ad5477..ea08653101f30fea67d00aea923fa2fa2bd51b52 100644
(file)
--- a/
src/FeaturesPlugin/Test/TestExtrusion.py
+++ b/
src/FeaturesPlugin/Test/TestExtrusion.py
@@
-103,7
+103,8
@@
assert (anExtrusionResult is not None)
# Create from plane
aSession.startOperation()
aFromPlaneFeature = aPart.addFeature("Plane")
# Create from plane
aSession.startOperation()
aFromPlaneFeature = aPart.addFeature("Plane")
-aFromPlaneFeature.string("CreationMethod").setValue("PlaneByGeneralEquation")
+aFromPlaneFeature.string("creation_method").setValue("by_general_equation")
+aFromPlaneFeature.string("by_other_plane_option").setValue("by_distance_from_other") # TODO: remove
aFromPlaneFeature.real("A").setValue(0.)
aFromPlaneFeature.real("B").setValue(0.)
aFromPlaneFeature.real("C").setValue(1.)
aFromPlaneFeature.real("A").setValue(0.)
aFromPlaneFeature.real("B").setValue(0.)
aFromPlaneFeature.real("C").setValue(1.)
@@
-113,7
+114,8
@@
aSession.finishOperation()
# Create to plane
aSession.startOperation()
aToPlaneFeature = aPart.addFeature("Plane")
# Create to plane
aSession.startOperation()
aToPlaneFeature = aPart.addFeature("Plane")
-aToPlaneFeature.string("CreationMethod").setValue("PlaneByGeneralEquation")
+aToPlaneFeature.string("creation_method").setValue("by_general_equation")
+aToPlaneFeature.string("by_other_plane_option").setValue("by_distance_from_other") # TODO: remove
aToPlaneFeature.real("A").setValue(0.)
aToPlaneFeature.real("B").setValue(0.)
aToPlaneFeature.real("C").setValue(1.)
aToPlaneFeature.real("A").setValue(0.)
aToPlaneFeature.real("B").setValue(0.)
aToPlaneFeature.real("C").setValue(1.)
@@
-243,3
+245,6
@@
assert (anExtrusionResult is not None)
#=========================================================================
# End of test
#=========================================================================
#=========================================================================
# End of test
#=========================================================================
+
+import model
+assert(model.checkPythonDump())