Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-core
Commits
51aefefc
Commit
51aefefc
authored
Nov 13, 2020
by
Maximilien Naveau
Browse files
add a unit-tests that essentially import the the python python file in src/dynamic_graph/
parent
d4b13427
Pipeline
#12177
passed with stage
in 33 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/python/python_imports.py
0 → 100755
View file @
51aefefc
#!/usr/bin/env python
import
unittest
class
PythonImportTest
(
unittest
.
TestCase
):
def
test_math_small_entities
(
self
):
try
:
import
dynamic_graph.sot.core.math_small_entities
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_feature_position_relative
(
self
):
try
:
import
dynamic_graph.sot.core.feature_position_relative
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_feature_position
(
self
):
try
:
import
dynamic_graph.sot.core.feature_position
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_matrix_util
(
self
):
try
:
import
dynamic_graph.sot.core.matrix_util
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_task_6d
(
self
):
try
:
import
dynamic_graph.sot.core.meta_task_6d
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_task_posture
(
self
):
try
:
import
dynamic_graph.sot.core.meta_task_posture
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_task_visual_point
(
self
):
try
:
import
dynamic_graph.sot.core.meta_task_visual_point
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_tasks_kine_relative
(
self
):
try
:
import
dynamic_graph.sot.core.meta_tasks_kine_relative
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_tasks_kine
(
self
):
try
:
import
dynamic_graph.sot.core.meta_tasks_kine
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_meta_tasks
(
self
):
try
:
import
dynamic_graph.sot.core.meta_tasks
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_attime
(
self
):
try
:
import
dynamic_graph.sot.core.utils.attime
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_history
(
self
):
try
:
import
dynamic_graph.sot.core.utils.history
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_thread_interruptible_loop
(
self
):
try
:
import
dynamic_graph.sot.core.utils.thread_interruptible_loop
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_viewer_helper
(
self
):
try
:
import
dynamic_graph.sot.core.utils.viewer_helper
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
def
test_viewer_loger
(
self
):
try
:
import
dynamic_graph.sot.core.utils.viewer_loger
except
ImportError
as
ie
:
self
.
fail
(
str
(
ie
))
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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