diff --git a/bindings/Sofa/tests/Core/ForceField.py b/bindings/Sofa/tests/Core/ForceField.py index 1ae62b306..7a83fbe13 100644 --- a/bindings/Sofa/tests/Core/ForceField.py +++ b/bindings/Sofa/tests/Core/ForceField.py @@ -108,6 +108,7 @@ def simulate_beam(linear_solver_template): root.addObject('DefaultAnimationLoop') + root.addObject('RequiredPlugin', name='Sofa.Component.Topology.Container.Grid') root.addObject('RequiredPlugin', name='Sofa.Component.ODESolver.Backward') root.addObject('RequiredPlugin', name='Sofa.Component.LinearSolver.Direct') root.addObject('RequiredPlugin', name='Sofa.Component.Engine.Select') diff --git a/bindings/Sofa/tests/Core/ObjectFactory.py b/bindings/Sofa/tests/Core/ObjectFactory.py index 12f0a1558..4f441f2fd 100644 --- a/bindings/Sofa/tests/Core/ObjectFactory.py +++ b/bindings/Sofa/tests/Core/ObjectFactory.py @@ -1,9 +1,10 @@ import unittest import Sofa +import SofaRuntime class Test(unittest.TestCase): def test_dump_json(self): - + SofaRuntime.importPlugin("Sofa.Component.StateContainer") json = Sofa.Core.ObjectFactory.dump_json() self.assertIn("MechanicalObject", json, "MechanicalObject is not found in the json dump of the ObjectFactory")