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
3998459a
Commit
3998459a
authored
Jul 29, 2019
by
Olivier Stasse
Browse files
[unitTest] Add python unit test.
parent
6afcb39c
Pipeline
#7550
failed with stage
in 44 minutes and 44 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
unitTesting/CMakeLists.txt
View file @
3998459a
...
...
@@ -160,3 +160,7 @@ FOREACH(test ${tests})
ENDIF
(
UNIX
)
ENDFOREACH
(
test
)
IF
(
BUILD_PYTHON_INTERFACE
)
ADD_SUBDIRECTORY
(
python
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
unitTesting/python/CMakeLists.txt
0 → 100644
View file @
3998459a
SET
(
${
PROJECT_NAME
}
_PYTHON_TESTS
op-point-modifier
)
FOREACH
(
TEST
${${
PROJECT_NAME
}
_PYTHON_TESTS
}
)
ADD_PYTHON_UNIT_TEST
(
"py-
${
TEST
}
"
"unitTesting/python/
${
TEST
}
.py"
"python"
)
ENDFOREACH
(
TEST
${${
PROJECT_NAME
}
_PYTHON_TESTS
}
)
unitTesting/python/op-point-modifier.py
View file @
3998459a
...
...
@@ -168,3 +168,5 @@ class OpPointModifierTest(unittest.TestCase):
if
__name__
==
'__main__'
:
unittest
.
main
()
np
.
testing
.
assert_equal
(
stop
,
0
)
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