[1.4.x] Fixed #19196 -- Added test/requirements
Backport of 4d92a0bd86
from master
This commit is contained in:
parent
7b7592cafa
commit
e8971345b4
|
@ -141,29 +141,48 @@ Running all the tests
|
||||||
If you want to run the full suite of tests, you'll need to install a number of
|
If you want to run the full suite of tests, you'll need to install a number of
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
|
* PIL_
|
||||||
|
* py-bcrypt_
|
||||||
* PyYAML_
|
* PyYAML_
|
||||||
* Markdown_
|
* Markdown_
|
||||||
* Textile_
|
* Textile_
|
||||||
* Docutils_
|
* Docutils_
|
||||||
|
* pytz_
|
||||||
* setuptools_
|
* setuptools_
|
||||||
* memcached_, plus a :ref:`supported Python binding <memcached>`
|
* memcached_, plus a :ref:`supported Python binding <memcached>`
|
||||||
* gettext_ (:ref:`gettext_on_windows`)
|
* gettext_ (:ref:`gettext_on_windows`)
|
||||||
* selenium_ (if also using Python >= 2.6)
|
* selenium_ (if also using Python >= 2.6)
|
||||||
|
|
||||||
|
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/base.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
|
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.
|
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>`.
|
||||||
|
|
||||||
Each of these dependencies is optional. If you're missing any of them, the
|
Each of these dependencies is optional. If you're missing any of them, the
|
||||||
associated tests will be skipped.
|
associated tests will be skipped.
|
||||||
|
|
||||||
|
.. _PIL: https://pypi.python.org/pypi/PIL
|
||||||
|
.. _py-bcrypt: https://pypi.python.org/pypi/py-bcrypt/
|
||||||
.. _PyYAML: http://pyyaml.org/wiki/PyYAML
|
.. _PyYAML: http://pyyaml.org/wiki/PyYAML
|
||||||
.. _Markdown: http://pypi.python.org/pypi/Markdown/1.7
|
.. _Markdown: http://pypi.python.org/pypi/Markdown/1.7
|
||||||
.. _Textile: http://pypi.python.org/pypi/textile
|
.. _Textile: http://pypi.python.org/pypi/textile
|
||||||
.. _docutils: http://pypi.python.org/pypi/docutils/0.4
|
.. _docutils: http://pypi.python.org/pypi/docutils/0.4
|
||||||
|
.. _pytz: https://pypi.python.org/pypi/pytz/
|
||||||
.. _setuptools: http://pypi.python.org/pypi/setuptools/
|
.. _setuptools: http://pypi.python.org/pypi/setuptools/
|
||||||
.. _memcached: http://memcached.org/
|
.. _memcached: http://memcached.org/
|
||||||
.. _gettext: http://www.gnu.org/software/gettext/manual/gettext.html
|
.. _gettext: http://www.gnu.org/software/gettext/manual/gettext.html
|
||||||
.. _selenium: http://pypi.python.org/pypi/selenium
|
.. _selenium: http://pypi.python.org/pypi/selenium
|
||||||
|
.. _pip requirements files: http://www.pip-installer.org/en/latest/requirements.html
|
||||||
|
|
||||||
Code coverage
|
Code coverage
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
docutils
|
||||||
|
Markdown
|
||||||
|
PIL
|
||||||
|
py-bcrypt
|
||||||
|
python-memcached
|
||||||
|
pytz
|
||||||
|
PyYAML
|
||||||
|
selenium
|
||||||
|
Textile
|
|
@ -0,0 +1 @@
|
||||||
|
MySQL-python
|
|
@ -0,0 +1 @@
|
||||||
|
cx_oracle
|
|
@ -0,0 +1 @@
|
||||||
|
psycopg2
|
Loading…
Reference in New Issue