Skip to content
Snippets Groups Projects
Commit 05d023f3335d authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

chore(black)

parent e400be4f7a85
No related branches found
No related tags found
2 merge requests!74chore(es): make ES connection timeout configurable in cubicweb all-in-one config,!73chore(es): make ES connection timeout configurable in cubicweb all-in-one config
......@@ -41,7 +41,8 @@
~N after a word signifies edit distance (fuzziness)
~N after a phrase signifies slop amount
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/query-dsl-simple-query-string-query.html""" # noqa
https://www.elastic.co/guide/en/elasticsearch/reference/7.9/query-dsl-simple-query-string-query.html
""" # noqa
# for all operators except "-", if it appears, then we assume it is a simple query
for operator in SIMPLE_QUERY_OPERATORS.replace("-", ""):
if operator in query:
......
......@@ -353,7 +353,7 @@
del url_params["page"]
self.w('<div class="facetBody vocabularyFacet">')
self.w('<div class="facetTitle">{}</div>'.format(attribute))
for (tag, count, selected) in response.facets[attribute]:
for tag, count, selected in response.facets[attribute]:
# facetValueSelected / facetValueDisabled in class
facet_item = (
'<div class="facetValue facetCheckBox">'
......
......@@ -157,7 +157,6 @@
class ElasticSearchViewsTC(testlib.CubicWebTC):
# TODO generate X tests ranging the number of results from 1 to 150
@patch("elasticsearch_dsl.search.Search.execute", new=mock_execute_1)
@patch("elasticsearch_dsl.connections.connections.get_connection", new=mock_cnx)
......
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