summaryrefslogtreecommitdiff
path: root/oslo_i18n/fixture.py
Commit message (Collapse)AuthorAgeFilesLines
* Better isolate tests and fixtures from environmentJoshua Harlow2016-03-241-4/+4
| | | | | | | | Remove a duplicate monkey patch as well as ensure that the environment the test is running in does not influence the test results (especially in regard to locale settings). Change-Id: I2451240148bb329e0ff9aa01f279bde9711e599f
* Remove oslo namespace packageDoug Hellmann2015-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blueprint remove-namespace-packages Depends-on: I5bd1cdc35d2ecaf98a0802fff589d8c37aaa8028 for openstack/django_openstack_auth Depends-on: I5da7ca7a8a909eb12a4417e7d5f5b6bd33da4de8 for openstack/horizon Depends-on: Ib17a74ada3122ce45c52fdd7dcf8d27fafbb1d70 for openstack/openstack-doc-tools Depends-on: I1f539cf9f5d6f48e10cac381c13eeb5fa314abd4 for openstack/python-ceilometerclient Depends-on: Ic21066211a071591854280a93a53bb2255cb8ad3 for openstack/python-ironicclient Depends-on: I387a7a1a817058a4daca313fe6df60612cb84864 for openstack/python-keystoneclient Depends-on: I32767615b2d678b6ce545722b6b9d1704cb1ffb4 for openstack/python-keystoneclient-saml2 Depends-on: Id26264ad0b002ab21e60431a2fd39fcecf76c490 for openstack/python-magnumclient Depends-on: Ib86c36f81f6fdbee64d88dd0b1d126bcc16649ac for openstack/python-manilaclient Depends-on: If5e8257085b5fd0a26a34705505fc0077adbabb2 for openstack/python-novaclient Depends-on: I37ce99d8c9a2ba5b97a12a0c2666f6340dbc7f42 for openstack/python-saharaclient Depends-on: I2a8caa859830b3416bfe54e4261dd3415ac5a76a for openstack/python-troveclient Depends-on: I324a3bd0c468a3e84f633497ad5c0d59c5ccc455 for openstack/python-tuskarclient Depends-on: Id54b2381f00d9905c4bb07821f54c5aaaa48d970 for openstack/python-zaqarclient Depends-on: I9d3e80d94795060d375aae30ce249513aae3fd97 for openstack/trove Change-Id: I1b100a426f84b91f9c5a9a857f420e36c209cbb4
* Add test fixture to prefix lazily translated messages1.4.0James Carey2015-01-281-0/+76
| | | | | | | | | | | | | | | | | This fixture enables testing of lazy translation by faking out translations by providing a translation that is the message id prefixed with the domain and language used in the translation. It supports the definition of new fake languages so that a different language can be specified without having to create the associated message catalogs. For example, this will be used to test that a fake language requested using the Accept-Language header is used to translate the message instead of the default language. That is, that the message was enabled for lazy translation and was not translated until just before it was returned to the user. Change-Id: If6dd28815d11c07ce9430ed07e61bfbc23695707 Partially-Implements: blueprint i18n-enablement-juno
* Add a fixture to let tests manage the lazy flag1.3.0Doug Hellmann2015-01-061-0/+24
| | | | | | | | We do not want to expose the stored lazy flag, but we do want to allow applications to force it to a certain state and then restore it to its original test for testing. This new fixture provides a way to do that. Change-Id: Ica05fd8fc7e687da69d61ea84bf1ceae65db93ce
* Move out of the oslo namespace packageDoug Hellmann2014-12-181-0/+65
Move the public API out of oslo.i18n to oslo_i18n. Retain the ability to import from the old namespace package for backwards compatibility for this release cycle. bp/drop-namespace-packages Change-Id: I800f121c271d8e69f6e776c4aef509bbb8008170