R. David Murray | 8f7bcb3 | 2010-10-02 13:29:13 +0000 | [diff] [blame] | 1 | import test.support |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 2 | |
R. David Murray | a21e4ca | 2009-03-31 23:16:50 +0000 | [diff] [blame] | 3 | # Skip test if _sqlite3 module not installed |
R. David Murray | 8f7bcb3 | 2010-10-02 13:29:13 +0000 | [diff] [blame] | 4 | test.support.import_module('_sqlite3') |
R. David Murray | a21e4ca | 2009-03-31 23:16:50 +0000 | [diff] [blame] | 5 | |
Ezio Melotti | c2ecac4 | 2013-04-12 14:13:47 +0300 | [diff] [blame] | 6 | import unittest |
R. David Murray | d68d4e8 | 2010-09-29 01:22:20 +0000 | [diff] [blame] | 7 | import sqlite3 |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 8 | from sqlite3.test import (dbapi, types, userfunctions, |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 9 | factory, transactions, hooks, regression, |
| 10 | dump) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 11 | |
Ezio Melotti | c2ecac4 | 2013-04-12 14:13:47 +0300 | [diff] [blame] | 12 | def load_tests(*args): |
R. David Murray | 8f7bcb3 | 2010-10-02 13:29:13 +0000 | [diff] [blame] | 13 | if test.support.verbose: |
R. David Murray | d68d4e8 | 2010-09-29 01:22:20 +0000 | [diff] [blame] | 14 | print("test_sqlite: testing with version", |
| 15 | "{!r}, sqlite_version {!r}".format(sqlite3.version, |
| 16 | sqlite3.sqlite_version)) |
Ezio Melotti | c2ecac4 | 2013-04-12 14:13:47 +0300 | [diff] [blame] | 17 | return unittest.TestSuite([dbapi.suite(), types.suite(), |
R. David Murray | 8f7bcb3 | 2010-10-02 13:29:13 +0000 | [diff] [blame] | 18 | userfunctions.suite(), |
| 19 | factory.suite(), transactions.suite(), |
| 20 | hooks.suite(), regression.suite(), |
Ezio Melotti | c2ecac4 | 2013-04-12 14:13:47 +0300 | [diff] [blame] | 21 | dump.suite()]) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 22 | |
| 23 | if __name__ == "__main__": |
Ezio Melotti | c2ecac4 | 2013-04-12 14:13:47 +0300 | [diff] [blame] | 24 | unittest.main() |