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.cmdline
Commits
2e565dec
Commit
2e565dec
authored
Jun 04, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/test/test_docker.py
View file @
2e565dec
...
...
@@ -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
...
...
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