Skip to content

Commit 39cc454

Browse files
authored
Fix missing plugins (#458)
* fix missing plugins * fix missing plugin again
1 parent c416793 commit 39cc454

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

bindings/Sofa/tests/Core/BaseData.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ def t(c):
248248
self.assertRaises(ValueError, (lambda c: t(c)), color)
249249

250250
def test_DataAsContainerNumpyArray_testIsDirtyOnDoubleAccess_(self):
251+
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")
252+
251253
root = create_scene("rootNode")
252254

253255
root.addObject("PointSetTopologyContainer", points=[[0, 0, 0], [1, 0, 0]])

bindings/Sofa/tests/Core/BaseMeshTopology.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def test_regular_grid_hexas(self):
5757

5858
def test_regular_grid_tetra(self):
5959
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Grid")
60+
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Constant")
61+
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")
6062
SofaRuntime.importPlugin("Sofa.Component.Topology.Mapping")
6163

6264
root = Sofa.Core.Node("rootNode")

bindings/Sofa/tests/Core/BaseObject.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
def create_scene(rootName="root"):
77
root = Sofa.Core.Node(rootName)
88
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
9+
root.addObject("RequiredPlugin", name="Sofa.Component.Topology.Container.Constant")
910
return root
1011

1112
class Test(unittest.TestCase):

bindings/Sofa/tests/Core/Mass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def simulate_beam(linear_solver_template):
2222
root.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Projective')
2323
root.addObject('RequiredPlugin', name='Sofa.Component.SolidMechanics.FEM.Elastic')
2424
root.addObject('RequiredPlugin', name='Sofa.Component.Mass')
25+
root.addObject('RequiredPlugin', name='Sofa.Component.Topology.Container.Grid')
2526

2627
root.addObject('EulerImplicitSolver', rayleighStiffness="0.1", rayleighMass="0.1")
2728
root.addObject('SparseLDLSolver', applyPermutation="false", template=linear_solver_template)

0 commit comments

Comments
 (0)