]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Ensure lazy translation is disabled properly
authorJay S. Bryant <jsbryant@us.ibm.com>
Tue, 13 Jan 2015 04:55:45 +0000 (22:55 -0600)
committerJay S. Bryant <jsbryant@us.ibm.com>
Tue, 20 Jan 2015 16:14:43 +0000 (10:14 -0600)
commit5be6971908d1d63f89c3b1e58963b161e4555315
tree44d238032bebdf49410c0295049ad8d72597d498
parent7512734c80d5ed11915d8e85805918d480d1ecba
Ensure lazy translation is disabled properly

Commit 894f20d9cf57b36ccf9a675c6b2b070d56c9b297 changed the way that
enable_lazy() is being configured in cinder's test cases.  The changes
were required to remove the use of _lazy from the oslo's i18n library.
_lazy was removed from i18n and the code that was accessing the internal
variable broke.  The commit referenced above made changes to remove
the use of _lazy.

The commit, however, changed the behavior of the test cases to only
enable_lazy without disabling it, which diverges from the original
behavior.

This commit uses the new oslo.i18n ToggleLazy fixture (added in 1.3.0).

Closes-bug: 1408099
Change-Id: If9530b2bb8f0f511ccff4527ea9f2d13f7103bdb
cinder/tests/api/middleware/test_faults.py
cinder/tests/test_wsgi.py