• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import test.support
2from test.support import import_helper
3
4# Skip test if _sqlite3 module not installed
5import_helper.import_module('_sqlite3')
6
7import unittest
8import sqlite3
9from sqlite3.test import (dbapi, types, userfunctions,
10                                factory, transactions, hooks, regression,
11                                dump, backup)
12
13def load_tests(*args):
14    if test.support.verbose:
15        print("test_sqlite: testing with version",
16              "{!r}, sqlite_version {!r}".format(sqlite3.version,
17                                                 sqlite3.sqlite_version))
18    return unittest.TestSuite([dbapi.suite(), types.suite(),
19                               userfunctions.suite(),
20                               factory.suite(), transactions.suite(),
21                               hooks.suite(), regression.suite(),
22                               dump.suite(),
23                               backup.suite()])
24
25if __name__ == "__main__":
26    unittest.main()
27