Skip to content
GitLab
Menu
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
16f29f77
Commit
16f29f77
authored
Sep 26, 2018
by
Samuel GAIST
Browse files
[test][exection] Add kwargs to execute to be able to extend the configuration
parent
24314811
Changes
1
Show whitespace changes
Inline
Side-by-side
beat/core/test/test_execution.py
View file @
16f29f77
...
...
@@ -89,7 +89,7 @@ class BaseExecutionMixIn(object):
return
data
def
execute
(
self
,
label
,
expected_result
):
def
execute
(
self
,
label
,
expected_result
,
**
kwargs
):
"""Executes the full experiment, block after block, returning results. If an
error occurs, returns information about the err'd block. Otherwise, returns
``None``.
...
...
@@ -117,8 +117,9 @@ class BaseExecutionMixIn(object):
# can we execute it?
results
=
[]
for
key
,
value
in
scheduled
.
items
():
configuration
=
{
**
value
[
'configuration'
],
**
kwargs
}
executor
=
self
.
create_executor
(
prefix
,
value
[
'
configuration
'
]
,
tmp_prefix
,
executor
=
self
.
create_executor
(
prefix
,
configuration
,
tmp_prefix
,
dataformat_cache
,
database_cache
,
algorithm_cache
)
assert
executor
.
valid
,
'
\n
* %s'
%
'
\n
* '
.
join
(
executor
.
errors
)
...
...
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