Changeset - eaf1782bee64
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-08-03 23:07:26
marcin@python-works.com
add option to disable whoosh index in tests via an enviroment variable.
- helps speed up testing, when whoosh is noot needed
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/config/environment.py
Show inline comments
 
@@ -79,6 +79,8 @@ def load_environment(global_conf, app_co
 
        from rhodecode.lib.utils import create_test_env, create_test_index
 
        from rhodecode.tests import  TESTS_TMP_PATH
 
        create_test_env(TESTS_TMP_PATH, config)
 
        # set RC_WHOOSH_TEST_DISABLE=1 to disable whoosh index during tests
 
        if not int(os.environ.get('RC_WHOOSH_TEST_DISABLE', 0)):
 
        create_test_index(TESTS_TMP_PATH, config, True)
 

	
 
    # MULTIPLE DB configs
0 comments (0 inline, 0 general)