mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[3.0.x] Corrected section indentation in unit tests contributor docs.
Backport of b39c39e82ae12ca92686ee97a7be2958ee667e5c from master
This commit is contained in:
parent
56061decff
commit
7ded25d713
@ -476,12 +476,12 @@ You can also use the ``DJANGO_TEST_PROCESSES`` environment variable for this
|
|||||||
purpose.
|
purpose.
|
||||||
|
|
||||||
Tips for writing tests
|
Tips for writing tests
|
||||||
----------------------
|
======================
|
||||||
|
|
||||||
.. highlight:: python
|
.. highlight:: python
|
||||||
|
|
||||||
Isolating model registration
|
Isolating model registration
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
----------------------------
|
||||||
|
|
||||||
To avoid polluting the global :attr:`~django.apps.apps` registry and prevent
|
To avoid polluting the global :attr:`~django.apps.apps` registry and prevent
|
||||||
unnecessary table creation, models defined in a test method should be bound to
|
unnecessary table creation, models defined in a test method should be bound to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user