kopia lustrzana https://github.com/simonw/datasette
Updated tests for date(...) lookup
rodzic
de4503a136
commit
2d14f21f85
|
@ -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]),
|
||||
(
|
||||
|
|
Ładowanie…
Reference in New Issue