##// END OF EJS Templates
Incorporate CSS from select2-bootstrap-css & its license information....
Incorporate CSS from select2-bootstrap-css & its license information. RhodeCode 2.2.5 included a modified version of this upstream work. We include herein the upstream version as downloaded and incorporated using the following commands: (cd /tmp; \ git clone https://github.com/t0m/select2-bootstrap-css ) cp /tmp/select2-bootstrap-css/select2-bootstrap.css rhodecode/public/js/select2/ The content used to be appended to select2.css but we now keep it in a separate file select2-bootstrap.css . This file could be included in root.html like select2.css but we do currently not want to use bootstrap. The license info was incorporated from /tmp/select2-bootstrap-css/LICENSE into our LICENSE.md file.

File last commit:

r3797:d7488551 beta
r4130:15e50704 rhodecode-2.2.5-gpl
Show More
conf.py
65 lines | 2.1 KiB | text/x-python | PythonLexer
Added vcs testsuite for better integration tests + added fetching...
r2451 """
Unit tests configuration module for vcs.
"""
import os
import time
import hashlib
import tempfile
import datetime
fixed edge case in tests when we run them from virtualmachine and not as owner of files
r3501 import shutil
Added vcs testsuite for better integration tests + added fetching...
r2451 from utils import get_normalized_path
from os.path import join as jn
synced vcs with upstream...
r3797 __all__ = (
'TEST_HG_REPO', 'TEST_GIT_REPO', 'HG_REMOTE_REPO', 'GIT_REMOTE_REPO',
'SCM_TESTS',
)
SCM_TESTS = ['hg', 'git']
uniq_suffix = str(int(time.mktime(datetime.datetime.now().timetuple())))
Added vcs testsuite for better integration tests + added fetching...
r2451 THIS = os.path.abspath(os.path.dirname(__file__))
synced vcs with upstream...
r3797
GIT_REMOTE_REPO = 'git://github.com/codeinn/vcs.git'
TEST_TMP_PATH = os.environ.get('VCS_TEST_ROOT', '/tmp')
TEST_GIT_REPO = os.environ.get('VCS_TEST_GIT_REPO',
jn(TEST_TMP_PATH, 'vcs-git'))
TEST_GIT_REPO_CLONE = os.environ.get('VCS_TEST_GIT_REPO_CLONE',
jn(TEST_TMP_PATH, 'vcsgitclone%s' % uniq_suffix))
TEST_GIT_REPO_PULL = os.environ.get('VCS_TEST_GIT_REPO_PULL',
jn(TEST_TMP_PATH, 'vcsgitpull%s' % uniq_suffix))
HG_REMOTE_REPO = 'http://bitbucket.org/marcinkuzminski/vcs'
TEST_HG_REPO = os.environ.get('VCS_TEST_HG_REPO',
jn(TEST_TMP_PATH, 'vcs-hg'))
TEST_HG_REPO_CLONE = os.environ.get('VCS_TEST_HG_REPO_CLONE',
jn(TEST_TMP_PATH, 'vcshgclone%s' % uniq_suffix))
TEST_HG_REPO_PULL = os.environ.get('VCS_TEST_HG_REPO_PULL',
jn(TEST_TMP_PATH, 'vcshgpull%s' % uniq_suffix))
TEST_DIR = os.environ.get('VCS_TEST_ROOT', tempfile.gettempdir())
TEST_REPO_PREFIX = 'vcs-test'
def get_new_dir(title):
"""
Returns always new directory path.
"""
name = TEST_REPO_PREFIX
if title:
name = '-'.join((name, title))
hex = hashlib.sha1(str(time.time())).hexdigest()
name = '-'.join((name, hex))
path = os.path.join(TEST_DIR, name)
return get_normalized_path(path)
Added vcs testsuite for better integration tests + added fetching...
r2451
PACKAGE_DIR = os.path.abspath(os.path.join(
os.path.dirname(__file__), '..'))
synced vcs with upstream...
r3797 _dest = jn(TEST_TMP_PATH, 'aconfig')
fixed edge case in tests when we run them from virtualmachine and not as owner of files
r3501 shutil.copy(jn(THIS, 'aconfig'), _dest)
TEST_USER_CONFIG_FILE = _dest
synced vcs with upstream...
r3797
#overide default configurations with rhodecode ones
from rhodecode.tests import *