Home | History | Annotate | Download | only in test
      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                                 factory, transactions, hooks, regression,
     10                                 dump, backup)
     11 
     12 def load_tests(*args):
     13     if test.support.verbose:
     14         print("test_sqlite: testing with version",
     15               "{!r}, sqlite_version {!r}".format(sqlite3.version,
     16                                                  sqlite3.sqlite_version))
     17     return unittest.TestSuite([dbapi.suite(), types.suite(),
     18                                userfunctions.suite(),
     19                                factory.suite(), transactions.suite(),
     20                                hooks.suite(), regression.suite(),
     21                                dump.suite(),
     22                                backup.suite()])
     23 
     24 if __name__ == "__main__":
     25     unittest.main()
     26