Rafał Pitoń 11 лет назад
Родитель
Сommit
fb9857c6b2
1 измененных файлов с 3 добавлено и 6 удалено
  1. 3 6
      misago/core/tests/test_templatetags.py

+ 3 - 6
misago/core/tests/test_templatetags.py

@@ -99,8 +99,7 @@ class FormRowTests(TestCase):
 """
 
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)
 
     def test_form_row_with_two_args(self):
         """form_row with two args raises exception"""
@@ -111,8 +110,7 @@ class FormRowTests(TestCase):
 """
 
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)
 
     def test_form_row_with_four_args(self):
         """form_row with four args raises exception"""
@@ -123,5 +121,4 @@ class FormRowTests(TestCase):
 """
 
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)