Loading tests/template_tests/tests.py +7 −0 Original line number Diff line number Diff line Loading @@ -604,6 +604,13 @@ class TemplateTests(TestCase): # Ignore deprecations of old style unordered_list # and removetags. warnings.filterwarnings("ignore", category=RemovedInDjango20Warning, module="django.template.defaultfilters") # Ignore numpy deprecation warnings (#23890) warnings.filterwarnings( "ignore", "Using a non-integer number instead of an " "integer will result in an error in the future", DeprecationWarning ) output = self.render(test_template, vals) except ShouldNotExecuteException: failures.append("Template test (Cached='%s', TEMPLATE_STRING_IF_INVALID='%s', TEMPLATE_DEBUG=%s): %s -- FAILED. Template rendering invoked method that shouldn't have been invoked." % (is_cached, invalid_str, template_debug, name)) Loading Loading
tests/template_tests/tests.py +7 −0 Original line number Diff line number Diff line Loading @@ -604,6 +604,13 @@ class TemplateTests(TestCase): # Ignore deprecations of old style unordered_list # and removetags. warnings.filterwarnings("ignore", category=RemovedInDjango20Warning, module="django.template.defaultfilters") # Ignore numpy deprecation warnings (#23890) warnings.filterwarnings( "ignore", "Using a non-integer number instead of an " "integer will result in an error in the future", DeprecationWarning ) output = self.render(test_template, vals) except ShouldNotExecuteException: failures.append("Template test (Cached='%s', TEMPLATE_STRING_IF_INVALID='%s', TEMPLATE_DEBUG=%s): %s -- FAILED. Template rendering invoked method that shouldn't have been invoked." % (is_cached, invalid_str, template_debug, name)) Loading