Merge "Move gettextutils installation in tests to core"

This commit is contained in:
Jenkins 2013-09-13 23:56:01 +00:00 committed by Gerrit Code Review
commit d7eff43844
2 changed files with 13 additions and 12 deletions
keystone/tests

@ -14,16 +14,4 @@
# License for the specific language governing permissions and limitations
# under the License.
from keystone.openstack.common import gettextutils
# NOTE(blk-u):
# gettextutils.install() must run to set _ before importing any modules that
# contain static translated strings.
#
# Configure gettextutils for deferred translation of messages
# so that error messages in responses can be translated according to the
# Accept-Language in the request rather than the Keystone server locale.
gettextutils.install('keystone', lazy=True)
from keystone.tests.core import * # flake8: noqa

@ -30,6 +30,19 @@ from paste import deploy
import stubout
import testtools
from keystone.openstack.common import gettextutils
# NOTE(blk-u):
# gettextutils.install() must run to set _ before importing any modules that
# contain static translated strings.
#
# Configure gettextutils for deferred translation of messages
# so that error messages in responses can be translated according to the
# Accept-Language in the request rather than the Keystone server locale.
gettextutils.install('keystone', lazy=True)
from keystone.common import environment
environment.use_eventlet()