Skip to content

Commit 6a074f9

Browse files
authored
Fix missing plugin and deprecation (#454)
* fix missing plugin * update unittest
1 parent cdd5556 commit 6a074f9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

bindings/Sofa/tests/Core/Mass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def simulate_beam(linear_solver_template):
1515

1616
root.addObject('DefaultAnimationLoop')
1717

18+
root.addObject('RequiredPlugin', name='Sofa.Component.StateContainer')
1819
root.addObject('RequiredPlugin', name='Sofa.Component.ODESolver.Backward')
1920
root.addObject('RequiredPlugin', name='Sofa.Component.LinearSolver.Direct')
2021
root.addObject('RequiredPlugin', name='Sofa.Component.Engine.Select')

bindings/SofaRuntime/tests/SofaRuntime/Base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ def test_getCategoriesmethod(self):
1212
import SofaRuntime
1313
SofaRuntime.importPlugin("Sofa.Component")
1414
t = SofaRuntime.getCategories("MeshOBJLoader")
15-
self.assertEquals(len(t),1)
15+
self.assertEqual(len(t),1)
1616
self.assertIsInstance(t, list)

0 commit comments

Comments
 (0)