Skip to content

Commit

Permalink
Fix unit tests due to a missing plugin [Mapping] (#463)
Browse files Browse the repository at this point in the history
* fix unit tests due to missing plugin

* fix python unit test due to missing plugin
  • Loading branch information
fredroy authored Oct 26, 2024
1 parent 13c2a93 commit 277fc66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def simulate_pendulum(self):
"Sofa.Component.Constraint.Projective",
"Sofa.Component.IO.Mesh",
"Sofa.Component.LinearSolver.Direct",
"Sofa.Component.Mapping.NonLinear",
"Sofa.Component.Mapping.MappedMatrix",
"Sofa.Component.Mass",
"Sofa.Component.ODESolver.Backward",
Expand Down
1 change: 1 addition & 0 deletions bindings/Sofa/tests/Core/BaseLink.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def create_scene(rootName="root"):
root = Sofa.Core.Node(rootName)
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
root.addObject("RequiredPlugin", name="Sofa.Component.SolidMechanics.Spring")
root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear")
return root

class Test(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions bindings/Sofa/tests/Simulation/Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def test_getMechanicalState(self):
def test_getMechanicalMapping(self):
root = Sofa.Core.Node("root")
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
root.addObject("RequiredPlugin", name="Sofa.Component.Mapping.Linear")
root.addObject("MechanicalObject", name="t1")
root.addObject("MechanicalObject", name="t2")
mm = root.addObject("BarycentricMapping", input="@/t1", output="@/t2")
Expand Down

0 comments on commit 277fc66

Please sign in to comment.