MCPcopy
hub / github.com/django/django / test_no_compile_when_unneeded

Method test_no_compile_when_unneeded

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

Source from the content-addressed store, hash-verified

63 mo_file_en.parent.chmod(old_mode)
64
65 def test_no_compile_when_unneeded(self):
66 mo_file_en = Path(self.MO_FILE_EN)
67 mo_file_en.touch()
68 stdout = StringIO()
69 call_command("compilemessages", locale=["en"], stdout=stdout, verbosity=1)
70 msg = "%s” is already compiled and up to date." % mo_file_en.with_suffix(".po")
71 self.assertIn(msg, stdout.getvalue())
72
73
74class PoFileContentsTests(MessageCompilationTests):

Callers

nothing calls this directly

Calls 3

call_commandFunction · 0.90
touchMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected