blob: 9cf1c55077d8676d4d454042f16c46a58731b846 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from common import utils
def test_make_where_clause():
params_with_between = {"column": "BETWEEN"}
assert utils.make_where_clause(params_with_between) == "WHERE column "\
"BETWEEN :column1 AND :column2"
def test_update_clause_from_dict():
test_data = {"name": "Flaf"}
assert utils.update_clause_from_dict(test_data) == "SET name = :name"
|