Django

Code

Changeset 7714

Show
Ignore:
Timestamp:
06/20/08 10:34:51 (2 months ago)
Author:
lukeplant
Message:

Updated information about unit tests, contrib apps in particular.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/contributing.txt

    r7632 r7714  
    703703 
    704704    * Models and the database API (``tests/modeltests/``). 
    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) 
    712707 
    713708We appreciate any and all contributions to the test suite! 
     
    755750    PYTHONPATH=.. 
    756751    ./runtests.py --settings=settings generic_relations i18n 
     752 
     753Contrib apps 
     754------------ 
     755 
     756Tests for apps in ``django/contrib/`` go in their respective directories, 
     757in a ``tests.py`` file. (You can split the tests over multiple modules 
     758by using a ``tests`` folder in the normal Python way). 
     759 
     760For the tests to be found, a ``models.py`` file must exist (it doesn't 
     761have to have anything in it). 
     762 
     763To run tests for just one contrib app (e.g. ``markup``), use the same 
     764method as above:: 
     765 
     766    ./runtests.py --settings=settings markup 
    757767 
    758768Requesting features