Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
899c262f
Commit
899c262f
authored
May 04, 2020
by
Guilhem Saurel
Browse files
[Python][Test] add registration test
parent
e7494ff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/CMakeLists.txt
View file @
899c262f
...
...
@@ -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-optimization"
"python/test/optimization.py"
"python"
)
ADD_PYTHON_UNIT_TEST
(
"python-notebook"
"python/test/notebook.py"
"python"
)
ADD_PYTHON_UNIT_TEST
(
"python-registration"
"python/test/registration.py"
"python"
)
python/test/registration.py
0 → 100644
View file @
899c262f
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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment