mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11665 -- Made TestCase check deferrable constraints after each test.
This commit is contained in:
@@ -761,11 +761,18 @@ additions, including:
|
||||
* Wraps the tests within two nested ``atomic`` blocks: one for the whole class
|
||||
and one for each test.
|
||||
|
||||
* Checks deferrable database constraints at the end of each test.
|
||||
|
||||
* Creates a TestClient instance.
|
||||
|
||||
* Django-specific assertions for testing for things like redirection and form
|
||||
errors.
|
||||
|
||||
.. versionchanged:: 1.10
|
||||
|
||||
The check for deferrable database constraints at the end of each test was
|
||||
added.
|
||||
|
||||
.. classmethod:: TestCase.setUpTestData()
|
||||
|
||||
The class-level ``atomic`` block described above allows the creation of
|
||||
|
||||
Reference in New Issue
Block a user