Commit 2e565dec authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][docker] Update tests for new output of algorithm's call function

It now returns a tuple
parent 60d33907
Pipeline #21143 passed with stages
in 46 minutes and 10 seconds
......@@ -67,7 +67,8 @@ def test_execute_algorithm_using_database():
input_field = instructions_data['inputs']['in']
index_db_from_instructions(input_field)
nose.tools.eq_(call_algo('execute', instructions, cache=tmp_prefix), 0)
exit_code, outputs = call_algo('execute', instructions, cache=tmp_prefix)
nose.tools.eq_(exit_code, 0, msg=outputs)
@slow
......@@ -83,7 +84,8 @@ def test_execute_algorithm_using_cached_files():
instructions = os.path.join(instructions_dir, 'algo_using_cached_files.json')
nose.tools.eq_(call_algo('execute', instructions, cache=tmp_prefix), 0)
exit_code, outputs = call_algo('execute', instructions, cache=tmp_prefix)
nose.tools.eq_(exit_code, 0, msg=outputs)
@slow
......@@ -104,7 +106,8 @@ def test_execute_algorithm_using_database_and_cached_files():
input_field = instructions_data['inputs']['in1']
index_db_from_instructions(input_field)
nose.tools.eq_(call_algo('execute', instructions, cache=tmp_prefix), 0)
exit_code, outputs = call_algo('execute', instructions, cache=tmp_prefix)
nose.tools.eq_(exit_code, 0, msg=outputs)
@slow
......@@ -120,7 +123,8 @@ def test_execute_analyzer():
instructions = os.path.join(instructions_dir, 'analyzer.json')
nose.tools.eq_(call_algo('execute', instructions, cache=tmp_prefix), 0)
exit_code, outputs = call_algo('execute', instructions, cache=tmp_prefix)
nose.tools.eq_(exit_code, 0, msg=outputs)
@slow
......
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