Skip to content

Commit f23c6d3

Browse files
committed
load statecontainer to get MechanicalObject in the factory
1 parent 6378a1a commit f23c6d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import unittest
22
import Sofa
3+
import SofaRuntime
34

45
class Test(unittest.TestCase):
56

67
def test_dump_json(self):
7-
8+
SofaRuntime.importPlugin("Sofa.Component.StateContainer")
89
json = Sofa.Core.ObjectFactory.dump_json()
910
self.assertIn("MechanicalObject", json, "MechanicalObject is not found in the json dump of the ObjectFactory")

0 commit comments

Comments
 (0)