| 705 | | * The cache system (``tests/regressiontests/cache.py``). |
|---|
| 706 | | * The ``django.utils.dateformat`` module (``tests/regressiontests/dateformat/``). |
|---|
| 707 | | * Database typecasts (``tests/regressiontests/db_typecasts/``). |
|---|
| 708 | | * The template system (``tests/regressiontests/templates/`` and |
|---|
| 709 | | ``tests/regressiontests/defaultfilters/``). |
|---|
| 710 | | * ``QueryDict`` objects (``tests/regressiontests/httpwrappers/``). |
|---|
| 711 | | * Markup template tags (``tests/regressiontests/markup/``). |
|---|
| | 705 | * Everything else in core Django code (``tests/regressiontests``) |
|---|
| | 706 | * Contrib apps (``django/contrib/<contribapp>/tests``, see below) |
|---|
| | 752 | |
|---|
| | 753 | Contrib apps |
|---|
| | 754 | ------------ |
|---|
| | 755 | |
|---|
| | 756 | Tests for apps in ``django/contrib/`` go in their respective directories, |
|---|
| | 757 | in a ``tests.py`` file. (You can split the tests over multiple modules |
|---|
| | 758 | by using a ``tests`` folder in the normal Python way). |
|---|
| | 759 | |
|---|
| | 760 | For the tests to be found, a ``models.py`` file must exist (it doesn't |
|---|
| | 761 | have to have anything in it). |
|---|
| | 762 | |
|---|
| | 763 | To run tests for just one contrib app (e.g. ``markup``), use the same |
|---|
| | 764 | method as above:: |
|---|
| | 765 | |
|---|
| | 766 | ./runtests.py --settings=settings markup |
|---|