mirror of https://github.com/searxng/searxng.git
Add tests for special characters [ '"].
This commit is contained in:
parent
bc5068fece
commit
7897ad1d5a
|
@ -67,6 +67,21 @@ class TestElasticsearchEngine(SearxTestCase): # pylint: disable=missing-class-d
|
||||||
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||||
'{"query": {"simple_query_string": {"query": "stuff"}}}',
|
'{"query": {"simple_query_string": {"query": "stuff"}}}',
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'space stuff',
|
||||||
|
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||||
|
'{"query": {"simple_query_string": {"query": "space stuff"}}}',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'"space stuff"',
|
||||||
|
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||||
|
'{"query": {"simple_query_string": {"query": "\\\"space stuff\\\""}}}',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"embedded'apostrophe",
|
||||||
|
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||||
|
'{"query": {"simple_query_string": {"query": "embedded\'apostrophe"}}}',
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'more:stuff',
|
'more:stuff',
|
||||||
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||||
|
|
Loading…
Reference in New Issue