File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ def test_issue208_2_sectionByPlane():
2323 assert "Pt0026" in surf22_vertices
2424 assert "Pt0027" in surf22_vertices
2525
26+ # Juste pour tester undo/redo
27+ assert gm .getNbVolumes () == 5
28+ ctx .undo ()
29+ assert gm .getNbVolumes () == 4
30+ ctx .undo ()
31+ assert gm .getNbVolumes () == 3
32+ ctx .redo ()
33+ assert gm .getNbVolumes () == 4
34+ ctx .redo ()
35+ assert gm .getNbVolumes () == 5
36+
2637def test_issue208_single_sectionByPlane ():
2738 ctx = Mgx3D .getStdContext ()
2839 ctx .clearSession () # Clean the session after the previous test
@@ -40,3 +51,9 @@ def test_issue208_single_sectionByPlane():
4051
4152 # Vol0001 se trouve découpé à tort => 6 volumes au lieu de 5
4253 assert gm .getNbVolumes () == 5
54+
55+ # Juste pour tester undo/redo
56+ ctx .undo ()
57+ assert gm .getNbVolumes () == 3
58+ ctx .redo ()
59+ assert gm .getNbVolumes () == 5
You can’t perform that action at this time.
0 commit comments