Commit 16f29f77 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][exection] Add kwargs to execute to be able to extend the configuration

parent 24314811
...@@ -89,7 +89,7 @@ class BaseExecutionMixIn(object): ...@@ -89,7 +89,7 @@ class BaseExecutionMixIn(object):
return data 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 """Executes the full experiment, block after block, returning results. If an
error occurs, returns information about the err'd block. Otherwise, returns error occurs, returns information about the err'd block. Otherwise, returns
``None``. ``None``.
...@@ -117,8 +117,9 @@ class BaseExecutionMixIn(object): ...@@ -117,8 +117,9 @@ class BaseExecutionMixIn(object):
# can we execute it? # can we execute it?
results = [] results = []
for key, value in scheduled.items(): 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) dataformat_cache, database_cache, algorithm_cache)
assert executor.valid, '\n * %s' % '\n * '.join(executor.errors) assert executor.valid, '\n * %s' % '\n * '.join(executor.errors)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment