mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-29 12:24:32 +02:00
parent
e878f2a8fe
commit
de10590344
3 changed files with 27 additions and 1 deletions
12
tests/test_constructor.py
Normal file
12
tests/test_constructor.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from sqlite_utils import Database
|
||||
import pytest
|
||||
|
||||
|
||||
def test_recursive_triggers():
|
||||
db = Database(memory=True)
|
||||
assert db.conn.execute("PRAGMA recursive_triggers").fetchone()[0]
|
||||
|
||||
|
||||
def test_recursive_triggers_off():
|
||||
db = Database(memory=True, recursive_triggers=False)
|
||||
assert not db.conn.execute("PRAGMA recursive_triggers").fetchone()[0]
|
||||
Loading…
Add table
Add a link
Reference in a new issue