mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
[multi-db] Added MODELS settings to TEST_DATABASES.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ed4e198d11
commit
a5caa0ab27
@ -13,6 +13,13 @@ REGRESSION_TESTS_DIR_NAME = 'regressiontests'
|
|||||||
TEST_DATABASE_NAME = 'django_test_db'
|
TEST_DATABASE_NAME = 'django_test_db'
|
||||||
TEST_DATABASES = (TEST_DATABASE_NAME + '_a', TEST_DATABASE_NAME + '_b')
|
TEST_DATABASES = (TEST_DATABASE_NAME + '_a', TEST_DATABASE_NAME + '_b')
|
||||||
|
|
||||||
|
TEST_DATABASE_MODELS = {
|
||||||
|
TEST_DATABASE_NAME + '_a': [ 'multiple_databases.Artist',
|
||||||
|
'multiple_databases.Opus' ],
|
||||||
|
TEST_DATABASE_NAME + '_b': [ 'multiple_databases.Widget',
|
||||||
|
'multiple_databases.Doohickey' ]
|
||||||
|
}
|
||||||
|
|
||||||
error_list = []
|
error_list = []
|
||||||
def log_error(model_name, title, description):
|
def log_error(model_name, title, description):
|
||||||
error_list.append({
|
error_list.append({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user