Skip to content

Commit 277fc66

Browse files
authored
Fix unit tests due to a missing plugin [Mapping] (#463)
* fix unit tests due to missing plugin * fix python unit test due to missing plugin
1 parent 13c2a93 commit 277fc66

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

bindings/Modules/tests/SofaConstraintSolver/matrix_access.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def simulate_pendulum(self):
1414
"Sofa.Component.Constraint.Projective",
1515
"Sofa.Component.IO.Mesh",
1616
"Sofa.Component.LinearSolver.Direct",
17+
"Sofa.Component.Mapping.NonLinear",
1718
"Sofa.Component.Mapping.MappedMatrix",
1819
"Sofa.Component.Mass",
1920
"Sofa.Component.ODESolver.Backward",

bindings/Sofa/tests/Core/BaseLink.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def create_scene(rootName="root"):
88
root = Sofa.Core.Node(rootName)
99
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
1010
root.addObject("RequiredPlugin", name="Sofa.Component.SolidMechanics.Spring")
11+
root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear")
1112
return root
1213

1314
class Test(unittest.TestCase):

bindings/Sofa/tests/Simulation/Node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def test_getMechanicalState(self):
285285
def test_getMechanicalMapping(self):
286286
root = Sofa.Core.Node("root")
287287
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
288+
root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear")
288289
root.addObject("MechanicalObject", name="t1")
289290
root.addObject("MechanicalObject", name="t2")
290291
mm = root.addObject("BarycentricMapping", input="@/t1", output="@/t2")

0 commit comments

Comments
 (0)