Skip to content

Commit 8b32b72

Browse files
authored
Update plugins in unit tests (#323)
1 parent 7a44ca6 commit 8b32b72

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bindings/Modules/tests/SofaDeformable/SpringForceField.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66

77
def create_scene(root):
8+
root.addObject("RequiredPlugin", name="Sofa.Component.Topology.Container.Grid")
89
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
9-
root.addObject("RequiredPlugin", name="SofaBaseTopology")
10+
root.addObject("RequiredPlugin", name="Sofa.Component.SolidMechanics.Spring")
1011

1112
# Create a simple plane having 3x3 nodes and a size of 3x3 on the yz plane centered on (-0.5,0,0).
1213
root.addChild('plane_1')
@@ -121,4 +122,4 @@ def test_add_many_springs(self):
121122
self.assertEqual(spring_2.dampingFactor, 2)
122123
self.assertEqual(spring_2.restLength, 2)
123124
self.assertFalse(spring_2.elongationOnly)
124-
self.assertTrue(spring_2.enabled)
125+
self.assertTrue(spring_2.enabled)

0 commit comments

Comments
 (0)