##// END OF EJS Templates
docs: update i18n doc after TG migration changed lang to i18n.lang and test.ini is generated...
Mads Kiilerich -
r7311:451b3f9d default
parent child Browse files
Show More
@@ -99,13 +99,14 b' systems with /tmp mounted noexec will th'
99 99 You can also use ``tox`` to run the tests with all supported Python versions
100 100 (currently Python 2.6--2.7).
101 101
102 When running tests, Kallithea uses `kallithea/tests/test.ini` and populates the
103 SQLite database specified there.
102 When running tests, Kallithea generates a `test.ini` based on template values
103 in `kallithea/tests/conftest.py` and populates the SQLite database specified
104 there.
104 105
105 106 It is possible to avoid recreating the full test database on each invocation of
106 107 the tests, thus eliminating the initial delay. To achieve this, run the tests as::
107 108
108 gearbox serve -c kallithea/tests/test.ini --pid-file=test.pid --daemon
109 gearbox serve -c /tmp/kallithea-test-XXX/test.ini --pid-file=test.pid --daemon
109 110 KALLITHEA_WHOOSH_TEST_DISABLE=1 KALLITHEA_NO_TMP_PATH=1 py.test
110 111 kill -9 $(cat test.pid)
111 112
@@ -88,11 +88,8 b' new translation instructions'
88 88 Testing translations
89 89 --------------------
90 90
91 Edit kallithea/tests/test.ini file and set lang attribute to::
92
93 lang=<new_language_code>
94
95 Run Kallithea tests by executing::
91 Edit `kallithea/tests/conftest.py` and set `i18n.lang` to `<new_language_code>`
92 and run Kallithea tests by executing::
96 93
97 94 py.test
98 95
@@ -46,6 +46,7 b' def pytest_configure():'
46 46 'show_revision_number': 'true',
47 47 'beaker.cache.sql_cache_short.expire': '1',
48 48 'beaker.session.secret': '{74e0cd75-b339-478b-b129-07dd221def1f}',
49 #'i18n.lang': '',
49 50 },
50 51 '[handler_console]': {
51 52 'formatter': 'color_formatter',
@@ -1,8 +1,6 b''
1 1 #!/usr/bin/env python2
2 2 """
3 Based on kallithea/lib/paster_commands/template.ini.mako, generate
4 development.ini
5 kallithea/tests/test.ini
3 Based on kallithea/lib/paster_commands/template.ini.mako, generate development.ini
6 4 """
7 5
8 6 import re
General Comments 0
You need to be logged in to leave comments. Login now