Skip to content

Commit

Permalink
Skip this test on DBs that don't support strict, refs #644
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 23, 2024
1 parent 4dc2e2e commit 4381390
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4381390

Please sign in to comment.