Added 'not like' table filter, refs #750

This commit is contained in:
Simon Willison 2020-05-02 12:04:54 -07:00
commit b3aa5f4313
3 changed files with 8 additions and 0 deletions

View file

@ -32,6 +32,8 @@ import pytest
['"foo" like :p0', '"foo" like :p1'],
["2%2", "3%3"],
),
# notlike:
((("foo__notlike", "2%2"),), ['"foo" not like :p0'], ["2%2"],),
(
(("foo__isnull", "1"), ("baz__isnull", "1"), ("bar__gt", "10")),
['"bar" > :p0', '"baz" is null', '"foo" is null'],