1
0
mirror of https://github.com/django/django.git synced 2025-03-26 09:10:50 +00:00

Corrected section indentation in unit tests contributor docs.

This commit is contained in:
Carlton Gibson 2019-09-27 11:58:14 -07:00 committed by Carlton Gibson
parent 02c63b8f2f
commit b39c39e82a

View File

@ -476,12 +476,12 @@ You can also use the ``DJANGO_TEST_PROCESSES`` environment variable for this
purpose.
Tips for writing tests
----------------------
======================
.. highlight:: python
Isolating model registration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----------------------------
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