mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
?column_notcontains= table filter, closes #2287
This commit is contained in:
parent
c863443ea1
commit
f99c2f5f8c
3 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,11 @@ import pytest
|
|||
"args,expected_where,expected_params",
|
||||
[
|
||||
((("name_english__contains", "foo"),), ['"name_english" like :p0'], ["%foo%"]),
|
||||
(
|
||||
(("name_english__notcontains", "foo"),),
|
||||
['"name_english" not like :p0'],
|
||||
["%foo%"],
|
||||
),
|
||||
(
|
||||
(("foo", "bar"), ("bar__contains", "baz")),
|
||||
['"bar" like :p0', '"foo" = :p1'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue