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 |
|
|
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 |
|
|
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', |
General Comments 0
You need to be logged in to leave comments.
Login now