mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
Skip this test on DBs that don't support strict, refs #644
This commit is contained in:
parent
4dc2e2e9c8
commit
4381390cf1
1 changed files with 2 additions and 0 deletions
|
|
@ -1353,6 +1353,8 @@ def test_create_table_strict(fresh_db, strict):
|
|||
table = fresh_db.create_table("t", {"id": int, "f": float}, strict=strict)
|
||||
assert table.strict == strict or not fresh_db.supports_strict
|
||||
expected_schema = "CREATE TABLE [t] (\n" " [id] INTEGER,\n" " [f] FLOAT\n" ")"
|
||||
if strict and not fresh_db.supports_strict:
|
||||
return
|
||||
if strict:
|
||||
expected_schema = "CREATE TABLE [t] (\n [id] INTEGER,\n [f] REAL\n) STRICT"
|
||||
assert table.schema == expected_schema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue