setup_databases
Create the test databases.
def setup_databases(
verbosity: int,
interactive: bool,
time_keeper: TimeKeeper = None,
keepdb: bool = False,
debug_sql: bool = False,
parallel: int = 0,
aliases: set = None,
serialized_aliases: set = None
) - > list
Create the test databases.
Parameters
| Name | Type | Description |
|---|---|---|
| verbosity | int | The level of detail to output during the database creation process. |
| interactive | bool | Determines if the user should be prompted for confirmation before destroying existing databases. |
| time_keeper | TimeKeeper = None | An optional object used to track and record the duration of database creation and cloning operations. |
| keepdb | bool = False | If true, preserves the existing test database between test runs instead of recreating it. |
| debug_sql | bool = False | If true, forces the use of a debug cursor on all connections to log SQL statements. |
| parallel | int = 0 | The number of parallel processes for which to clone the test databases. |
| aliases | set = None | A set of database connection aliases to be included in the setup process. |
| serialized_aliases | set = None | A set of database aliases that require their state to be serialized for TransactionTestCase support. |
Returns
| Type | Description |
|---|---|
list | A list of tuples containing the connection object, the original database name, and a boolean indicating if it was the primary connection for that database. |