summaryrefslogtreecommitdiff
path: root/tests/test_runner_apps
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2021-02-14 22:42:47 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-02-24 20:31:11 +0100
commit3089018e951dcca568574c0e0ebf9d8aab112389 (patch)
tree932c0c26621d115185561feded6987a57771a3ea /tests/test_runner_apps
parentaf685b5f00a2a38ec596ff905d5f70455185b6d7 (diff)
downloaddjango-3089018e951dcca568574c0e0ebf9d8aab112389.tar.gz
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.
Diffstat (limited to 'tests/test_runner_apps')
-rw-r--r--tests/test_runner_apps/databases/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_runner_apps/databases/tests.py b/tests/test_runner_apps/databases/tests.py
index 4be260e689..dbb3b46e0b 100644
--- a/tests/test_runner_apps/databases/tests.py
+++ b/tests/test_runner_apps/databases/tests.py
@@ -10,6 +10,11 @@ class DefaultDatabaseTests(NoDatabaseTests):
databases = {'default'}
+class DefaultDatabaseSerializedTests(NoDatabaseTests):
+ databases = {'default'}
+ serialized_rollback = True
+
+
class OtherDatabaseTests(NoDatabaseTests):
databases = {'other'}