Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
dynamic-graph-python
Commits
90822c1a
Commit
90822c1a
authored
Nov 4, 2019
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[Tests] test error_out & dgpyError
parent
55f0cd7a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
unitTesting/CMakeLists.txt
+3
-0
3 additions, 0 deletions
unitTesting/CMakeLists.txt
unitTesting/test_bindings.py
+14
-0
14 additions, 0 deletions
unitTesting/test_bindings.py
with
17 additions
and
0 deletions
unitTesting/CMakeLists.txt
+
3
−
0
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
)
...
...
...
...
This diff is collapsed.
Click to expand it.
unitTesting/test_bindings.py
0 → 100644
+
14
−
0
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment