mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Add more STRICT table support per https://github.com/simonw/sqlite-utils/issues/344#issuecomment-982014776.
Make table.transform() preserve STRICT mode.
This commit is contained in:
parent
9286c1ba43
commit
e4b9b582cd
9 changed files with 182 additions and 4 deletions
|
|
@ -151,3 +151,9 @@ def test_lookup_with_extra_insert_parameters(fresh_db):
|
|||
columns=["name", "type"],
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("strict", (False, True))
|
||||
def test_lookup_new_table(fresh_db, strict):
|
||||
fresh_db["species"].lookup({"name": "Palm"}, strict=strict)
|
||||
assert fresh_db["species"].strict == strict or not fresh_db.supports_strict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue