From 30eec966f2b58e002d65e5e332ce2c311930a0b2 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Fri, 20 Sep 2024 15:49:29 +0900 Subject: [PATCH 1/2] fix missing plugin --- bindings/Sofa/tests/Core/Mass.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/Sofa/tests/Core/Mass.py b/bindings/Sofa/tests/Core/Mass.py index 843970f0..5f5cc83b 100644 --- a/bindings/Sofa/tests/Core/Mass.py +++ b/bindings/Sofa/tests/Core/Mass.py @@ -15,6 +15,7 @@ def simulate_beam(linear_solver_template): root.addObject('DefaultAnimationLoop') + root.addObject('RequiredPlugin', name='Sofa.Component.StateContainer') root.addObject('RequiredPlugin', name='Sofa.Component.ODESolver.Backward') root.addObject('RequiredPlugin', name='Sofa.Component.LinearSolver.Direct') root.addObject('RequiredPlugin', name='Sofa.Component.Engine.Select') From fea55be291a72e8672aad21e57adb831c9594100 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Fri, 20 Sep 2024 15:38:23 +0900 Subject: [PATCH 2/2] update unittest --- bindings/SofaRuntime/tests/SofaRuntime/Base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/SofaRuntime/tests/SofaRuntime/Base.py b/bindings/SofaRuntime/tests/SofaRuntime/Base.py index d655bf8b..cbdd3985 100644 --- a/bindings/SofaRuntime/tests/SofaRuntime/Base.py +++ b/bindings/SofaRuntime/tests/SofaRuntime/Base.py @@ -12,5 +12,5 @@ def test_getCategoriesmethod(self): import SofaRuntime SofaRuntime.importPlugin("Sofa.Component") t = SofaRuntime.getCategories("MeshOBJLoader") - self.assertEquals(len(t),1) + self.assertEqual(len(t),1) self.assertIsInstance(t, list)