﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18712	`DjangoTestSuiteRunner().setup_databases()` doesn't set confirm the feature to all connections in the case when there are several connections (aliases) to test DB.	vstepanov	nobody	"DjangoTestSuiteRunner.setup_databases creates the database only for the first connection (alias) to test DB (calls connection.creation.create_test_db).

However, connection.creation.create_test_db after creating test DB sets connection settings:
{{{
        self.connection.settings_dict[""NAME""] = test_database_name

        # Confirm the feature set of the test database
        self.connection.features.confirm()
}}}
For other connections (alias) to test DB DjangoTestSuiteRunner.setup_databases sets only connection name and doesn't call confirm the feature set of the test DB (self.connection.features.confirm()).

{{{
            for alias in aliases[1:]:
                connection = connections[alias]
                if db_name:
                    old_names.append((connection, db_name, False))
                    connection.settings_dict['NAME'] = test_db_name
                else:
                    # If settings_dict['NAME'] isn't defined, we have a backend
                    # where the name isn't important -- e.g., SQLite, which
                    # uses :memory:. Force create the database instead of
                    # assuming it's a duplicate.
                    old_names.append((connection, db_name, True))
                    connection.creation.create_test_db(
                        self.verbosity, autoclobber=not self.interactive)
}}}

As a result, other connections to test DB aren't configured and django.test.testcases.connections_support_transactions returns always False.

{{{
def connections_support_transactions():
    """"""
    Returns True if all connections support transactions.
    """"""
    return all(conn.features.supports_transactions
               for conn in connections.all())

}}}"	Bug	closed	Testing framework	1.4	Normal	wontfix			Unreviewed	0	0	0	0	0	0
