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

check python res

parent 1856c718
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, 'element_name': 'renault, 2000'}, {'id': 2, 'element_name': 'renault, bleu, 2000'}, {'id': 1, 'element_name': 'renault, rouge, 2000'}]
>>> print(get_selected_elements("","5",0))
[{'id': 4, 'element_name': 'peugeot, 2020'}]
[{'id': 4, 'element_name': 'peugeot, 2000'}]
"""
#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