Updated tests for date(...) lookup

This commit is contained in:
Simon Willison 2019-05-20 23:06:19 -07:00
commit 2d14f21f85

View file

@ -39,7 +39,7 @@ import pytest
),
((("foo__in", "1,2,3"),), ["foo in (:p0, :p1, :p2)"], ["1", "2", "3"]),
# date
((("foo__date", "1988-01-01"),), ["date(foo) = :p0"], ["1988-01-01"]),
((("foo__date", "1988-01-01"),), ['date("foo") = :p0'], ["1988-01-01"]),
# JSON array variants of __in (useful for unexpected characters)
((("foo__in", "[1,2,3]"),), ["foo in (:p0, :p1, :p2)"], [1, 2, 3]),
(