id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux
19869 Make changing the active language inside `LiveTestServerCase` possible void gchp "I was trying to make a selenium test to work with different locales in one test, like this:
{{{
for locale in locale_list:
with translation.override(locale):
self.selenium.get(something)
...test something...
}}}
But translation.override had affected only current thread, not LiveServerThread, probably because active translation is thread-local. Because I see no way to force LiveServerThread copy or share same thread-local state, it would be cool if I could have ability to stop LiveServerThread and recreate it in such cases. Currently it is started/stopped in setUpClass/tearDownClass which means that it is created once per TestCase run and shared between all the runs of all the test methods.
" New feature closed Testing framework master Normal wontfix apollo13 Accepted 0 0 0 0 0 0