mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in favor of databases.
This commit is contained in:
committed by
Tim Graham
parent
647be06538
commit
8c775391b7
@@ -18,7 +18,7 @@ from django.test.utils import captured_stdout
|
||||
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.sites'})
|
||||
class SitesFrameworkTests(TestCase):
|
||||
multi_db = True
|
||||
databases = {'default', 'other'}
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
@@ -236,7 +236,7 @@ class JustOtherRouter:
|
||||
|
||||
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.sites'})
|
||||
class CreateDefaultSiteTests(TestCase):
|
||||
multi_db = True
|
||||
databases = {'default', 'other'}
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
||||
Reference in New Issue
Block a user