test_sqlite.py 893 Bytes
Newer Older
1
import test.support
2 3

# Skip test if _sqlite3 module not installed
4
test.support.import_module('_sqlite3')
5

6
import unittest
7
import sqlite3
8
from sqlite3.test import (dbapi, types, userfunctions,
9 10
                                factory, transactions, hooks, regression,
                                dump)
11

12
def load_tests(*args):
13
    if test.support.verbose:
14 15 16
        print("test_sqlite: testing with version",
              "{!r}, sqlite_version {!r}".format(sqlite3.version,
                                                 sqlite3.sqlite_version))
17
    return unittest.TestSuite([dbapi.suite(), types.suite(),
18 19 20
                               userfunctions.suite(),
                               factory.suite(), transactions.suite(),
                               hooks.suite(), regression.suite(),
21
                               dump.suite()])
22 23

if __name__ == "__main__":
24
    unittest.main()