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