mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Also check that .transform() runs without exceptions
This commit is contained in:
parent
9a6e7dab4d
commit
7b8e7c4207
1 changed files with 3 additions and 2 deletions
|
|
@ -79,6 +79,7 @@ import pytest
|
|||
def test_transform_sql(fresh_db, params, expected_sql):
|
||||
dogs = fresh_db["dogs"]
|
||||
dogs.insert({"id": 1, "name": "Cleo", "age": "5"}, pk="id")
|
||||
params["tmp_suffix"] = "suffix"
|
||||
sql = dogs.transform_sql(**params)
|
||||
sql = dogs.transform_sql(**{**params, **{"tmp_suffix": "suffix"}})
|
||||
assert sql == expected_sql
|
||||
# Check that .transform() runs without exceptions:
|
||||
dogs.transform(**params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue