twisted.test.test_adbapi.DBTestConnector(object)
class documentationtwisted.test.test_adbapi
(View In Hierarchy)
Known subclasses: twisted.test.test_adbapi.FirebirdConnector, twisted.test.test_adbapi.MySQLConnector, twisted.test.test_adbapi.PsycopgConnector, twisted.test.test_adbapi.PyPgSQLConnector, twisted.test.test_adbapi.PySQLite2Connector, twisted.test.test_adbapi.SQLite3Connector
A class which knows how to test for the presence of and establish a connection to a relational database.
To enable test cases which use a central, system database, you must create a database named DB_NAME with a user DB_USER and password DB_PASS with full access rights to database DB_NAME.
Method | setUp | Undocumented |
Method | can_connect | Return true if this database is present on the system and can be used in a test. |
Method | startDB | Take any steps needed to bring database up. |
Method | stopDB | Bring database down, if needed. |
Method | makePool | Create a connection pool with additional keyword arguments. |
Method | getPoolArgs | Return a tuple (args, kw) of list and keyword arguments that need to be passed to ConnectionPool to create a connection to this database. |
Return true if this database is present on the system and can be used in a test.
Take any steps needed to bring database up.
Bring database down, if needed.
Return a tuple (args, kw) of list and keyword arguments that need to be passed to ConnectionPool to create a connection to this database.