mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
e9fce44195
commit
21c9c04310
4 changed files with 72 additions and 18 deletions
|
|
@ -90,7 +90,8 @@ def test_custom_json_encoder(obj, expected):
|
|||
),
|
||||
])
|
||||
def test_build_where(args, expected_where, expected_params):
|
||||
actual_where, actual_params = utils.build_where_clause(args)
|
||||
sql_bits, actual_params = utils.build_where_clauses(args)
|
||||
actual_where = ' and '.join(sql_bits)
|
||||
assert expected_where == actual_where
|
||||
assert {
|
||||
'p{}'.format(i): param
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue