Mercurial > kallithea
comparison rhodecode/tests/test_hg_operations.py @ 1277:cf2a67b91ffc beta
fixed path for .ini file in test hg operations
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 23 Apr 2011 15:56:17 +0200 |
parents | 6832ef664673 |
children | 1bd6ed0f38b1 |
comparison
equal
deleted
inserted
replaced
1276:88e750527c7c | 1277:cf2a67b91ffc |
---|---|
12 | 12 |
13 import os | 13 import os |
14 import shutil | 14 import shutil |
15 import logging | 15 import logging |
16 from os.path import join as jn | 16 from os.path import join as jn |
17 from os.path import dirname as dn | |
17 | 18 |
18 from tempfile import _RandomNameSequence | 19 from tempfile import _RandomNameSequence |
19 from subprocess import Popen, PIPE | 20 from subprocess import Popen, PIPE |
20 | 21 |
21 from paste.deploy import appconfig | 22 from paste.deploy import appconfig |
29 from rhodecode.lib.auth import get_crypt_password | 30 from rhodecode.lib.auth import get_crypt_password |
30 | 31 |
31 from rhodecode.tests import TESTS_TMP_PATH, NEW_HG_REPO, HG_REPO | 32 from rhodecode.tests import TESTS_TMP_PATH, NEW_HG_REPO, HG_REPO |
32 from rhodecode.config.environment import load_environment | 33 from rhodecode.config.environment import load_environment |
33 | 34 |
34 conf = appconfig('config:development.ini', relative_to='./../../') | 35 rel_path = dn(dn(dn(os.path.abspath(__file__)))) |
36 conf = appconfig('config:development.ini', relative_to=rel_path) | |
35 load_environment(conf.global_conf, conf.local_conf) | 37 load_environment(conf.global_conf, conf.local_conf) |
36 | 38 |
37 add_cache(conf) | 39 add_cache(conf) |
38 | 40 |
39 USER = 'test_admin' | 41 USER = 'test_admin' |