MCPcopy
hub / github.com/django/django / test_nofuzzy_compiling

Method test_nofuzzy_compiling

tests/i18n/test_compilation.py:317–322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")]):

Callers

nothing calls this directly

Calls 4

override_settingsClass · 0.90
call_commandFunction · 0.90
gettextFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected