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
Stack Of Tasks
dynamic-graph-python
Commits
90822c1a
Commit
90822c1a
authored
Nov 04, 2019
by
Guilhem Saurel
Browse files
[Tests] test error_out & dgpyError
parent
55f0cd7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
unitTesting/CMakeLists.txt
View file @
90822c1a
# Test bindings
ADD_PYTHON_UNIT_TEST
(
"test-bindings"
"unitTesting/test_bindings.py"
src
)
# Test the interpreter
SET
(
EXECUTABLE_NAME interpreter-test
)
ADD_EXECUTABLE
(
${
EXECUTABLE_NAME
}
interpreter-test.cc
)
...
...
unitTesting/test_bindings.py
0 → 100644
View file @
90822c1a
import
unittest
import
dynamic_graph
class
BindingsTests
(
unittest
.
TestCase
):
def
test_bindings
(
self
):
with
self
.
assertRaises
(
Exception
)
as
error
:
dynamic_graph
.
error_out
()
self
.
assertEqual
(
str
(
error
),
"something bad happend"
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Supports
Markdown
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