MCPcopy
hub / github.com/django/django / test_fuzzy_compiling

Method test_fuzzy_compiling

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

Source from the content-addressed store, hash-verified

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")]):
326 call_command(
327 "compilemessages", locale=[self.LOCALE], fuzzy=True, verbosity=0
328 )
329 with translation.override(self.LOCALE):
330 self.assertEqual(gettext("Lenin"), "Ленин")
331 self.assertEqual(gettext("Vodka"), "Водка")
332
333
334class AppCompilationTest(ProjectAndAppTests):

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