mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Add tests for special characters [ '"].
This commit is contained in:
parent
bc5068fece
commit
7897ad1d5a
1 changed files with 15 additions and 0 deletions
|
@ -67,6 +67,21 @@ class TestElasticsearchEngine(SearxTestCase): # pylint: disable=missing-class-d
|
|||
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||
'{"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',
|
||||
'{"query": {"simple_query_string": {"query": "{{QUERY}}"}}}',
|
||||
|
|
Loading…
Add table
Reference in a new issue