Activate RUN_ES_TESTS on CI and update doc (bug 1050155)

This commit is contained in:
Yohan Boniface 2014-09-05 12:11:24 +02:00
Родитель 3149872953
Коммит 3f84cf28ec
3 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -9,3 +9,6 @@ DEBUG_TOOLBAR_PATCH_SETTINGS = False # Prevent DDT from patching the settings.
INTERNAL_IPS = ('127.0.0.1',)
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
# RUN_ES_TESTS = True # Uncomment to run ES tests (Elasticsearch need
# to be installed).

Просмотреть файл

@ -18,6 +18,11 @@ thing you'll need to ensure is that the database credentials in your settings
has full permissions to modify a database with ``test_`` prepended to it. By
default the database name is ``olympia``, so the test database is
``test_olympia``.
Optionally, in particular if the code you are working on is related to search,
you'll want to run Elasticsearch tests. For this, you need to set the setting
``RUN_ES_TESTS=True``. Obviously, you need Elasticsearch to be installed. See
:ref:`elasticsearch` page for details.
Running Tests
-------------

Просмотреть файл

@ -1,3 +1,4 @@
from settings import * # noqa
LOG_LEVEL = logging.ERROR
RUN_ES_TESTS = True