(self)
| 315 | gettext_module._translations = {} # flush cache or test will be useless |
| 316 | |
| 317 | def test_nofuzzy_compiling(self): |
| 318 | with override_settings(LOCALE_PATHS=[os.path.join(self.test_dir, "locale")]): |
| 319 | call_command("compilemessages", locale=[self.LOCALE], verbosity=0) |
| 320 | with translation.override(self.LOCALE): |
| 321 | self.assertEqual(gettext("Lenin"), "Ленин") |
| 322 | self.assertEqual(gettext("Vodka"), "Vodka") |
| 323 | |
| 324 | def test_fuzzy_compiling(self): |
| 325 | with override_settings(LOCALE_PATHS=[os.path.join(self.test_dir, "locale")]): |
nothing calls this directly
no test coverage detected