mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
pk__notin= filter, closes #614
This commit is contained in:
parent
ee330222f4
commit
9db22cdf18
3 changed files with 21 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ import pytest
|
|||
["foo in (:p0, :p1)"],
|
||||
["dog,cat", "cat[dog]"],
|
||||
),
|
||||
# Not in, and JSON array not in
|
||||
((("foo__notin", "1,2,3"),), ["foo not in (:p0, :p1, :p2)"], ["1", "2", "3"]),
|
||||
((("foo__notin", "[1,2,3]"),), ["foo not in (:p0, :p1, :p2)"], [1, 2, 3]),
|
||||
],
|
||||
)
|
||||
def test_build_where(args, expected_where, expected_params):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue