Merge "Move gettextutils installation in tests to core"
This commit is contained in:
commit
d7eff43844
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user