mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
?_searchmode=raw option (#686)
This commit is contained in:
parent
a093c5f79f
commit
6cb65555f4
3 changed files with 30 additions and 4 deletions
|
|
@ -952,6 +952,19 @@ def test_sortable_columns_metadata(app_client):
|
|||
"/fixtures/searchable.json?_search=AND",
|
||||
[],
|
||||
),
|
||||
(
|
||||
# Without _searchmode=raw this should return no results
|
||||
"/fixtures/searchable.json?_search=te*+AND+do*",
|
||||
[],
|
||||
),
|
||||
(
|
||||
# _searchmode=raw
|
||||
"/fixtures/searchable.json?_search=te*+AND+do*&_searchmode=raw",
|
||||
[
|
||||
[1, "barry cat", "terry dog", "panther"],
|
||||
[2, "terry dog", "sara weasel", "puma"],
|
||||
],
|
||||
),
|
||||
(
|
||||
"/fixtures/searchable.json?_search=weasel",
|
||||
[[2, "terry dog", "sara weasel", "puma"]],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue