mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New ?tags__arraycontains=tag lookup against JSON fields
Part one of supporting facet-by-JSON-array, refs #359
This commit is contained in:
parent
3a208a41d4
commit
78e45ead4d
6 changed files with 74 additions and 41 deletions
|
|
@ -187,7 +187,7 @@ def test_custom_json_encoder(obj, expected):
|
|||
])
|
||||
def test_build_where(args, expected_where, expected_params):
|
||||
f = utils.Filters(sorted(args.items()))
|
||||
sql_bits, actual_params = f.build_where_clauses()
|
||||
sql_bits, actual_params = f.build_where_clauses("table")
|
||||
assert expected_where == sql_bits
|
||||
assert {
|
||||
'p{}'.format(i): param
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue