Skip to content

Commit

Permalink
Add missing testcase from sqlcipher3.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Dec 15, 2023
1 parent 162e967 commit ffb533d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ def test_dml_detection_begin_exclusive(self):
self.assertFalse(conn.in_transaction)

def test_dml_detection_vacuum(self):
conn = sqlite.connect(':memory:')
conn.execute('vacuum')
self.assertFalse(conn.in_transaction)

def test_dml_detection_pragma(self):
conn = sqlite.connect(get_db_path())
conn.execute('pragma journal_mode=\'wal\'')
jmode, = conn.execute('pragma journal_mode').fetchone()
Expand Down

0 comments on commit ffb533d

Please sign in to comment.