Fixed #19196 -- Added test/requirements

This commit is contained in:
Tim Graham 2013-07-01 13:58:04 -04:00
parent 1333967f91
commit 4d92a0bd86
8 changed files with 32 additions and 1 deletions

View File

@ -136,23 +136,40 @@ Running all the tests
If you want to run the full suite of tests, you'll need to install a number of
dependencies:
* Pillow_
* PyYAML_
* pytz_
* setuptools_
* memcached_, plus a :ref:`supported Python binding <memcached>`
* gettext_ (:ref:`gettext_on_windows`)
* selenium_ (if also using Python >= 2.6)
* selenium_
You can find these dependencies in `pip requirements files`_ inside the
``tests/requirements`` directory of the Django source tree and install them
like so::
pip install -r tests/requirements/py2.txt # Python 3: py3.txt
You can also install the database adapter(s) of your choice using
``oracle.txt``, ``mysql.txt``, or ``postgres.txt``.
If you want to test the memcached cache backend, you'll also need to define
a :setting:`CACHES` setting that points at your memcached instance.
To run the GeoDjango tests, you will need to :doc:`setup a spatial database
and install the Geospatial libraries</ref/contrib/gis/install/index>`.
Each of these dependencies is optional. If you're missing any of them, the
associated tests will be skipped.
.. _Pillow: https://pypi.python.org/pypi/Pillow/
.. _PyYAML: http://pyyaml.org/wiki/PyYAML
.. _pytz: https://pypi.python.org/pypi/pytz/
.. _setuptools: http://pypi.python.org/pypi/setuptools/
.. _memcached: http://memcached.org/
.. _gettext: http://www.gnu.org/software/gettext/manual/gettext.html
.. _selenium: http://pypi.python.org/pypi/selenium
.. _pip requirements files: http://www.pip-installer.org/en/latest/requirements.html
Code coverage
~~~~~~~~~~~~~

View File

@ -0,0 +1,6 @@
bcrypt
docutils
Pillow
PyYAML
pytz
selenium

View File

@ -0,0 +1 @@
MySQL-python

View File

@ -0,0 +1 @@
cx_oracle

View File

@ -0,0 +1 @@
psycopg2

View File

@ -0,0 +1,2 @@
-r base.txt
python-memcached

View File

@ -0,0 +1,2 @@
-r base.txt
python3-memcached

View File

@ -23,6 +23,7 @@ os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR
SUBDIRS_TO_SKIP = [
'data',
'requirements',
'templates',
'test_discovery_sample',
'test_discovery_sample2',