Changes between Initial Version and Version 1 of Ticket #32446


Ignore:
Timestamp:
Feb 14, 2021, 9:25:45 PM (4 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32446 – Description

    initial v1  
    1 The [https://docs.djangoproject.com/en/3.1/ref/settings/#serialize SERIALIZE] test database setting controls whether or not the content of test databases state should be serialized and restored between tests which enables the `TransactionTestCase.serialized_rollback` [https://docs.djangoproject.com/en/3.1/topics/testing/overview/#test-case-serialized-rollback feature] feature. It defaults to `True` and the documentation encourage turning it off to speed up test database creation time.
     1The [https://docs.djangoproject.com/en/3.1/ref/settings/#serialize SERIALIZE] test database setting controls whether or not the content of test databases state should be serialized and restored between tests which enables the `TransactionTestCase.serialized_rollback` [https://docs.djangoproject.com/en/3.1/topics/testing/overview/#test-case-serialized-rollback feature]. It defaults to `True` and the documentation encourage turning it off to speed up test database creation time.
    22
    33The requirements of having `TransactionTestCase` subclasses declare databases they are allowed to interact with that was introduced by #28478 paired with the requirement to opt-in the serialization behaviour through `serialized_rollback=False` allows the suite to determine if data state serialization for each test database is necessary at discovery time which makes the setting unnecessary.
Back to Top