mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #32446 -- Deprecated SERIALIZE test database setting.
Whether or not the state of a test database should be serialized can be inferred from the set of databases allowed to be access from discovered TestCase/TransactionTestCase enabling the serialized_rollback feature which makes this setting unnecessary. This should make a significant test suite bootstraping time difference on large projects that didn't explicitly disable test database serialization.
This commit is contained in:
parent
af685b5f00
commit
3089018e95
9 changed files with 103 additions and 20 deletions
|
@ -10,6 +10,11 @@ class DefaultDatabaseTests(NoDatabaseTests):
|
|||
databases = {'default'}
|
||||
|
||||
|
||||
class DefaultDatabaseSerializedTests(NoDatabaseTests):
|
||||
databases = {'default'}
|
||||
serialized_rollback = True
|
||||
|
||||
|
||||
class OtherDatabaseTests(NoDatabaseTests):
|
||||
databases = {'other'}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue