Use translation.deactivate, rather than explicitly activating the current settings LANGUAGE_CODE
This commit is contained in:
@@ -66,7 +66,7 @@ class TestModuleI18nService(ModuleStoreTestCase):
|
||||
self.descriptor,
|
||||
self.field_data,
|
||||
)
|
||||
self.addCleanup(translation.activate, settings.LANGUAGE_CODE)
|
||||
self.addCleanup(translation.deactivate)
|
||||
|
||||
def get_module_i18n_service(self, descriptor):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user