Files
@ 9f8a1212177e
Branch filter:
Location: kallithea/kallithea/__init__.py - annotation
9f8a1212177e
1.9 KiB
text/x-python
tests: use test_context for tests needing internationalization (bis)
Commit 8e3137064ab6 already introduced the use of test_context to cover
internationalization in the test suite, instead of setting it up globally.
When making changes related to formencode internationalization, a new batch
of internationalization errors popped up and a commit was made to fix them.
However, after some later refactoring, it looked as if the commit was not
needed anymore.
In Turbogears context, it was indeed not necessary as long as we still had
some places that used the dummy formencode.api._ rather than a real version
of _ (ugettext).
After cleaning up that forgotten import, the test internationalization
errors popped up again. Hence, we need to reapply the earlier commit (with
some changes).
Commit 8e3137064ab6 already introduced the use of test_context to cover
internationalization in the test suite, instead of setting it up globally.
When making changes related to formencode internationalization, a new batch
of internationalization errors popped up and a commit was made to fix them.
However, after some later refactoring, it looked as if the commit was not
needed anymore.
In Turbogears context, it was indeed not necessary as long as we still had
some places that used the dummy formencode.api._ rather than a real version
of _ (ugettext).
After cleaning up that forgotten import, the test internationalization
errors popped up again. Hence, we need to reapply the earlier commit (with
some changes).
d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e 0ad053c172fa 0ad053c172fa d1addaf7a91e 5eec79420ce3 5eec79420ce3 5eec79420ce3 d1addaf7a91e 1948ede028ef 1948ede028ef d1addaf7a91e d1addaf7a91e 24498ba2fbec ad38f9f93b3b d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e e9ac5698281d e9ac5698281d e9ac5698281d e9ac5698281d d5e16407bdbb d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e 56dadd0e5cf7 0b6d2ca7175f 56dadd0e5cf7 56dadd0e5cf7 0b6d2ca7175f 0b6d2ca7175f 24498ba2fbec f5c9018a5cf0 d55ff973d01f d1addaf7a91e d1addaf7a91e d1addaf7a91e 1948ede028ef d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e | # -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
kallithea
~~~~~~~~~
Kallithea, a web based repository management system.
Versioning implementation: http://www.python.org/dev/peps/pep-0386/
This file was forked by the Kallithea project in July 2014.
Original author and date, and relevant copyright and licensing information is below:
:created_on: Apr 9, 2010
:author: marcink
:copyright: (c) 2013 RhodeCode GmbH, (C) 2014 Bradley M. Kuhn, and others.
:license: GPLv3, see LICENSE.md for more details.
"""
import sys
import platform
# temporary aliasing to allow early introduction of imports like 'from tg import request'
import pylons
sys.modules['tg'] = pylons
VERSION = (0, 3, 99)
BACKENDS = {
'hg': 'Mercurial repository',
'git': 'Git repository',
}
CELERY_ON = False
CELERY_EAGER = False
CONFIG = {}
# Linked module for extensions
EXTENSIONS = {}
try:
import kallithea.brand
except ImportError:
pass
else:
assert False, 'Database rebranding is no longer supported; see README.'
__version__ = '.'.join(str(each) for each in VERSION)
__platform__ = platform.system()
__license__ = 'GPLv3'
__py_version__ = sys.version_info
__author__ = "Various Authors"
__url__ = 'https://kallithea-scm.org/'
is_windows = __platform__ in ['Windows']
is_unix = not is_windows
|