Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ChEMBL
C
ChEMBL
Main Web Interface
Elasticsearch Proxy API
Commits
bc24fe3b
Commit
bc24fe3b
authored
Oct 14, 2021
by
David Mendez
Browse files
Make pylint happy
parent
c10a6f0c
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/blueprints/es_proxy/services/es_proxy_service.py
app/blueprints/es_proxy/services/es_proxy_service.py
+1
-1
functional_tests/run_functional_tests.py
functional_tests/run_functional_tests.py
+1
-1
functional_tests/specific_tests/fun_test_get_document_by_custom_id_prop.py
...specific_tests/fun_test_get_document_by_custom_id_prop.py
+1
-1
No files found.
app/blueprints/es_proxy/services/es_proxy_service.py
View file @
bc24fe3b
...
...
@@ -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'
]
...
...
functional_tests/run_functional_tests.py
View file @
bc24fe3b
...
...
@@ -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
,
...
...
functional_tests/specific_tests/fun_test_get_document_by_custom_id_prop.py
View file @
bc24fe3b
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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