Commit bc24fe3b authored by David Mendez's avatar David Mendez
Browse files

Make pylint happy

parent c10a6f0c
......@@ -86,7 +86,7 @@ def get_es_doc(index_name, doc_id, source=None, custom_id_property=None):
}
}
search_response = es_data.get_es_response(index_name, es_query)
hits = search_response.get('hits', {}).get('hits',[])
hits = search_response.get('hits', {}).get('hits', [])
if len(hits) == 0:
raise ESDataNotFoundError(f'No item found in index {index_name} with {custom_id_property} == {doc_id}')
item_id = hits[0]['_id']
......
......@@ -35,7 +35,7 @@ def run():
for test_module in [fun_test_simple_query, fun_test_query_with_context,
fun_test_query_with_search_by_ids_context, fun_test_property_config,
fun_test_group_config, fun_test_facets_group_config, fun_test_get_document,
fun_test_get_document_by_custom_id_prop
fun_test_get_document_by_custom_id_prop,
fun_test_id_properties,
fun_test_get_context_data, fun_test_search_parsing, fun_test_url_shortening,
fun_test_element_usage,
......
......@@ -24,4 +24,4 @@ def run_test(server_base_url, delayed_jobs_server_base_path):
'custom_id_property': 'target_chembl_id'
}
utils.assert_get_request_succeeds(url, params)
\ No newline at end of file
utils.assert_get_request_succeeds(url, params)
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