Skip to content

Commit 449313f

Browse files
committed
Remove or comment out tests within the python packaging as they refer to missing files/folders that are duplicated elsewhere
1 parent 2def671 commit 449313f

11 files changed

+154
-1135
lines changed

Bindings/Python/tests/test_DataAdapter.py

Lines changed: 0 additions & 109 deletions
This file was deleted.

Bindings/Python/tests/test_access_subcomponents.py

Lines changed: 0 additions & 94 deletions
This file was deleted.

Bindings/Python/tests/test_basics.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ def test_AnalysisToolModel(self):
6464
assert cmc.getModel().getName() == 'eggplant'
6565
assert cmc.getAnalysisSet().get(0).getName() == 'strong'
6666

67-
def test_ManagerConstructorCreatesIntegrator(self):
68-
# Make sure that the Manager is able to create a default integrator.
69-
# This tests a bug fix: previously, it was impossible to use the
70-
# Manager to integrate from MATLAB/Python, since it was not possible
71-
# to provide an Integrator to the Manager.
72-
model = osim.Model(os.path.join(test_dir, "arm26.osim"))
73-
state = model.initSystem()
74-
75-
manager = osim.Manager(model)
76-
state.setTime(0);
77-
manager.initialize(state);
78-
state = manager.integrate(0.00001)
67+
# def test_ManagerConstructorCreatesIntegrator(self):
68+
# # Make sure that the Manager is able to create a default integrator.
69+
# # This tests a bug fix: previously, it was impossible to use the
70+
# # Manager to integrate from MATLAB/Python, since it was not possible
71+
# # to provide an Integrator to the Manager.
72+
# model = osim.Model(os.path.join(test_dir, "arm26.osim"))
73+
# state = model.initSystem()
74+
75+
# manager = osim.Manager(model)
76+
# state.setTime(0);
77+
# manager.initialize(state);
78+
# state = manager.integrate(0.00001)
7979

8080
def test_WrapObject(self):
8181
# Make sure the WrapObjects are accessible.
@@ -97,28 +97,28 @@ def test_WrapObject(self):
9797
def test_ToyReflexController(self):
9898
controller = osim.ToyReflexController()
9999

100-
def test_GCVSplineSet(self):
101-
splineset = osim.GCVSplineSet(os.path.join(test_dir,
102-
'std_subject01_walk1_ik.mot'))
103-
splineset = osim.GCVSplineSet(
104-
osim.TimeSeriesTable(os.path.join(test_dir,
105-
'std_subject01_walk1_ik.mot')), [], 5, 0)
106-
107-
def test_deserialize_tool_with_empty_model_file(self):
108-
# Ensure an exception is thrown when loading an AbstractTool (e.g.,
109-
# ForwardTool) setup file with an empty model_file. In particular, we
110-
# want to check the case where force_set_files is not empty.
111-
with self.assertRaises(RuntimeError):
112-
rra = osim.ForwardTool(os.path.join(test_dir,
113-
'gait2392_setup_forward_empty_model.xml'))
114-
115-
# No exception if we pass loadModel=False
116-
rra = osim.ForwardTool(
117-
os.path.join(test_dir,
118-
'gait2392_setup_forward_empty_model.xml'),
119-
True, # updateFromXMLNode
120-
False, # loadModel
121-
)
100+
# def test_GCVSplineSet(self):
101+
# splineset = osim.GCVSplineSet(os.path.join(test_dir,
102+
# 'std_subject01_walk1_ik.mot'))
103+
# splineset = osim.GCVSplineSet(
104+
# osim.TimeSeriesTable(os.path.join(test_dir,
105+
# 'std_subject01_walk1_ik.mot')), [], 5, 0)
106+
107+
# def test_deserialize_tool_with_empty_model_file(self):
108+
# # Ensure an exception is thrown when loading an AbstractTool (e.g.,
109+
# # ForwardTool) setup file with an empty model_file. In particular, we
110+
# # want to check the case where force_set_files is not empty.
111+
# with self.assertRaises(RuntimeError):
112+
# rra = osim.ForwardTool(os.path.join(test_dir,
113+
# 'gait2392_setup_forward_empty_model.xml'))
114+
115+
# # No exception if we pass loadModel=False
116+
# rra = osim.ForwardTool(
117+
# os.path.join(test_dir,
118+
# 'gait2392_setup_forward_empty_model.xml'),
119+
# True, # updateFromXMLNode
120+
# False, # loadModel
121+
# )
122122

123123
def test_property_helper(self):
124124
muscle = osim.Thelen2003Muscle()

Bindings/Python/tests/test_component_interface.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
osim.Model.setDebugLevel(0)
1111

1212
class TestComponentInterface(unittest.TestCase):
13-
def test_printComponentsMatching(self):
14-
model = osim.Model(os.path.join(test_dir,
15-
"gait10dof18musc_subject01.osim"))
16-
num_matches = model.printComponentsMatching("_r")
17-
self.assertEqual(num_matches, 153)
13+
# def test_printComponentsMatching(self):
14+
# model = osim.Model(os.path.join(test_dir,
15+
# "gait10dof18musc_subject01.osim"))
16+
# num_matches = model.printComponentsMatching("_r")
17+
# self.assertEqual(num_matches, 153)
1818
def test_attachGeometry_memory_management(self):
1919
model = osim.Model()
2020
model.getGround().attachGeometry(osim.Sphere(1.5))

0 commit comments

Comments
 (0)