Commit 899c262f authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Python][Test] add registration test

parent e7494ff1
...@@ -10,3 +10,4 @@ ADD_PYTHON_UNIT_TEST("python-sinusoidal" "python/test/test-sinusoidal.py" "pytho ...@@ -10,3 +10,4 @@ ADD_PYTHON_UNIT_TEST("python-sinusoidal" "python/test/test-sinusoidal.py" "pytho
ADD_PYTHON_UNIT_TEST("python-minjerk" "python/test/test-minjerk.py" "python") ADD_PYTHON_UNIT_TEST("python-minjerk" "python/test/test-minjerk.py" "python")
ADD_PYTHON_UNIT_TEST("python-optimization" "python/test/optimization.py" "python") ADD_PYTHON_UNIT_TEST("python-optimization" "python/test/optimization.py" "python")
ADD_PYTHON_UNIT_TEST("python-notebook" "python/test/notebook.py" "python") ADD_PYTHON_UNIT_TEST("python-notebook" "python/test/notebook.py" "python")
ADD_PYTHON_UNIT_TEST("python-registration" "python/test/registration.py" "python")
import unittest
class TestRegistration(unittest.TestCase):
"""Check registration incompatibilities.
ref https://github.com/stack-of-tasks/eigenpy/issues/83
ref https://gitlab.laas.fr/loco-3d/curves/-/issues/6
"""
def test_pinocchio_then_curves(self):
import pinocchio
import curves
self.assertTrue(hasattr(pinocchio, 'Quaternion'))
self.assertTrue(hasattr(curves, 'Quaternion'))
def test_curves_then_pinocchio(self):
import curves
import pinocchio
self.assertTrue(hasattr(pinocchio, 'Quaternion'))
self.assertTrue(hasattr(curves, 'Quaternion'))
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment