Skip to content

Commit

Permalink
fix missing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Sep 24, 2024
1 parent c416793 commit ffc8de5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/Sofa/tests/Core/BaseData.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ def t(c):
self.assertRaises(ValueError, (lambda c: t(c)), color)

def test_DataAsContainerNumpyArray_testIsDirtyOnDoubleAccess_(self):
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")

root = create_scene("rootNode")

root.addObject("PointSetTopologyContainer", points=[[0, 0, 0], [1, 0, 0]])
Expand Down
2 changes: 2 additions & 0 deletions bindings/Sofa/tests/Core/BaseMeshTopology.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def test_regular_grid_hexas(self):

def test_regular_grid_tetra(self):
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Grid")
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Constant")
SofaRuntime.importPlugin("Sofa.Component.Topology.Container.Dynamic")
SofaRuntime.importPlugin("Sofa.Component.Topology.Mapping")

root = Sofa.Core.Node("rootNode")
Expand Down
1 change: 1 addition & 0 deletions bindings/Sofa/tests/Core/BaseObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
def create_scene(rootName="root"):
root = Sofa.Core.Node(rootName)
root.addObject("RequiredPlugin", name="Sofa.Component.StateContainer")
root.addObject("RequiredPlugin", name="Sofa.Component.Topology.Container.Constant")
return root

class Test(unittest.TestCase):
Expand Down

0 comments on commit ffc8de5

Please sign in to comment.