summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-10 12:03:47 -0500
committerTim Graham <timograham@gmail.com>2015-02-11 12:05:55 -0500
commit411028df534934ca7bc95335fcb5b0e26df931d6 (patch)
tree5bab28e0ef973421049afa6d8a8d3cee66f04393 /docs
parent69c89aeccf31c5ea10ffc546f5d499bcb4d719de (diff)
[1.8.x] Updated docs and runtests.py for removal of tests from contrib.
Backport of 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/contributing/writing-code/unit-tests.txt23
1 files changed, 4 insertions, 19 deletions
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt
index df50a636b8..8c9f07042b 100644
--- a/docs/internals/contributing/writing-code/unit-tests.txt
+++ b/docs/internals/contributing/writing-code/unit-tests.txt
@@ -5,11 +5,6 @@ Unit tests
Django comes with a test suite of its own, in the ``tests`` directory of the
code base. It's our policy to make sure all tests pass at all times.
-The tests cover:
-
-* Models, the database API and everything else in core Django core (``tests/``),
-* :ref:`contrib-apps` (``django/contrib/<app>/tests`` or ``tests/<app>_...``).
-
We appreciate any and all contributions to the test suite!
The Django tests all use the testing infrastructure that ships with Django for
@@ -125,8 +120,7 @@ internationalization, type:
$ ./runtests.py --settings=path.to.settings generic_relations i18n
How do you find out the names of individual tests? Look in ``tests/`` — each
-directory name there is the name of a test. Contrib app names are also valid
-test names.
+directory name there is the name of a test.
If you just want to run a particular class of tests, you can specify a list of
paths to individual test classes. For example, to run the ``TranslationTests``
@@ -239,18 +233,9 @@ and also excludes several directories not relevant to the results
Contrib apps
------------
-Tests for contrib apps go in their respective directories under
-``django/contrib``, in a ``tests.py`` file. You can split the tests over
-multiple modules by using a ``tests`` directory in the normal Python way.
-
-If you have URLs that need to be mapped, put them in ``tests/urls.py``.
-
-To run tests for just one contrib app (e.g. ``auth``), use the same
-method as above:
-
-.. code-block:: bash
-
- $ ./runtests.py --settings=settings django.contrib.auth
+Tests for contrib apps can be found in the ``tests/`` directory, typically
+under ``<app_name>_tests``. For example, tests for ``contrib.auth`` are located
+in ``tests/auth_tests``.
.. _troubleshooting-unit-tests: