Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
ab6d850a
Commit
ab6d850a
authored
Dec 12, 2018
by
Samuel GAIST
Browse files
[test][execution] Update loop execution test for new version using db input
parent
52bc551b
Changes
3
Hide whitespace changes
Inline
Side-by-side
beat/core/test/prefix/experiments/user/user/loop/1/loop.json
View file @
ab6d850a
...
...
@@ -2,7 +2,7 @@
"schema_version"
:
2
,
"blocks"
:
{
"loop_user"
:
{
"algorithm"
:
"
autonomous/
loop_user/1"
,
"algorithm"
:
"
user/db_input_
loop_user/1"
,
"parameters"
:
{
},
"inputs"
:
{
...
...
@@ -14,8 +14,8 @@
}
},
"loops"
:
{
"
test_
loop"
:
{
"algorithm"
:
"
autonomous/
loop/1"
,
"loop"
:
{
"algorithm"
:
"
user/db_input_
loop/1"
,
"parameters"
:
{
"threshold"
:
1
},
...
...
beat/core/test/prefix/toolchains/user/loop/1.json
View file @
ab6d850a
...
...
@@ -8,7 +8,7 @@
},
{
"from"
:
"integers.b"
,
"to"
:
"
test_
loop.in"
,
"to"
:
"loop.in"
,
"channel"
:
"integers"
},
{
...
...
@@ -20,10 +20,10 @@
"loop_connections"
:
[
{
"from"
:
"loop_user.request"
,
"to"
:
"
test_
loop.request"
"to"
:
"loop.request"
},
{
"from"
:
"
test_
loop.answer"
,
"from"
:
"loop.answer"
,
"to"
:
"loop_user.answer"
}
],
...
...
@@ -50,7 +50,7 @@
],
"loops"
:
[
{
"name"
:
"
test_
loop"
,
"name"
:
"loop"
,
"synchronized_channel"
:
"integers"
,
"inputs"
:
[
"in"
...
...
beat/core/test/test_execution.py
View file @
ab6d850a
...
...
@@ -280,7 +280,7 @@ class BaseExecutionMixIn(object):
@
slow
def
test_loop_1
(
self
):
assert
self
.
execute
(
'user/user/loop/1/loop'
,
[{
'sum'
:
4
5
,
'nb'
:
9
}])
is
None
assert
self
.
execute
(
'user/user/loop/1/loop'
,
[{
'sum'
:
2822
4
,
'nb'
:
9
}])
is
None
# For benchmark purposes
# @slow
...
...
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