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):
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)
......
Markdown is supported
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