Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
4d92a0bd
Kaydet (Commit)
4d92a0bd
authored
Tem 01, 2013
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #19196 -- Added test/requirements
üst
1333967f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
1 deletion
+32
-1
unit-tests.txt
docs/internals/contributing/writing-code/unit-tests.txt
+18
-1
base.txt
tests/requirements/base.txt
+6
-0
mysql.txt
tests/requirements/mysql.txt
+1
-0
oracle.txt
tests/requirements/oracle.txt
+1
-0
postgres.txt
tests/requirements/postgres.txt
+1
-0
py2.txt
tests/requirements/py2.txt
+2
-0
py3.txt
tests/requirements/py3.txt
+2
-0
runtests.py
tests/runtests.py
+1
-0
No files found.
docs/internals/contributing/writing-code/unit-tests.txt
Dosyayı görüntüle @
4d92a0bd
...
...
@@ -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
~~~~~~~~~~~~~
...
...
tests/requirements/base.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
bcrypt
docutils
Pillow
PyYAML
pytz
selenium
tests/requirements/mysql.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
MySQL-python
tests/requirements/oracle.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
cx_oracle
tests/requirements/postgres.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
psycopg2
tests/requirements/py2.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
-r base.txt
python-memcached
tests/requirements/py3.txt
0 → 100644
Dosyayı görüntüle @
4d92a0bd
-r base.txt
python3-memcached
tests/runtests.py
Dosyayı görüntüle @
4d92a0bd
...
...
@@ -23,6 +23,7 @@ os.environ['DJANGO_TEST_TEMP_DIR'] = TEMP_DIR
SUBDIRS_TO_SKIP
=
[
'data'
,
'requirements'
,
'templates'
,
'test_discovery_sample'
,
'test_discovery_sample2'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment