Skip to content

Commit b004e34

Browse files
committed
Add tests for some previously present SQLite extensions
1 parent 642382c commit b004e34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/verify_distribution.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ def test_sqlite(self):
122122
self.assertTrue(hasattr(conn, "enable_load_extension"))
123123
# Backup feature requires modern SQLite, which we always have.
124124
self.assertTrue(hasattr(conn, "backup"))
125+
# Ensure that various extensions are present. These will raise
126+
# if they are not.
127+
cursor = conn.cursor()
128+
cursor.execute("CREATE VIRTUAL TABLE fts3 USING fts3(sender, title, body);")
129+
cursor.execute("CREATE VIRTUAL TABLE fts4 USING fts4(sender, title, body);")
130+
cursor.execute("CREATE VIRTUAL TABLE fts5 USING fts5(sender, title, body);")
131+
cursor.execute("CREATE VIRTUAL TABLE geopoly USING geopoly();")
132+
cursor.execute("CREATE VIRTUAL TABLE rtree USING rtree(id, minX, maxX);")
133+
conn.close()
125134

126135
def test_ssl(self):
127136
import ssl

0 commit comments

Comments
 (0)