Skip to content
Snippets Groups Projects
Commit aff94231 authored by CHAMONT David's avatar CHAMONT David
Browse files

check failure is detected

parent ddb91154
No related branches found
No related tags found
1 merge request!68Doctest must return an error code in case of failure
......@@ -20,7 +20,7 @@ def get_selected_elements(id_mandatory_labels: int, id_forbiden_labels: str, num
>>> print(get_selected_elements("5","",1))
[{'id': 3, 'name': 'renault, 2000'}, {'id': 2, 'name': 'renault, bleu, 2000'}, {'id': 1, 'name': 'renault, rouge, 2000'}]
>>> print(get_selected_elements("","5",0))
[{'id': 4, 'name': 'peugeot, 2000'}]
[{'id': 4, 'name': 'peugeot, 2020'}]
"""
#query slightly vary if number_of_mandatory_labels > 0 or not
if(number_of_mandatory_labels):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment