Commits

Andriy Kornatskyy  committed 5072487

Refactored wheezy.template tests due to eliminated get_template method in Engine.

  • Participants
  • Parent commits 9b38341

Comments (0)

Files changed (2)

             'jinja2>=2.6'
         ],
         'wheezy.template': [
-            'wheezy.template>=0.1.85'
+            'wheezy.template>=0.1.88'
         ]
     },
 

File src/wheezy/html/ext/tests/test_template.py

                 'x': "@require(model, errors, message, scm)\n" + text}),
             extensions=[CoreExtension(), WidgetExtension()])
         engine.global_vars.update({'h': html_escape})
-        template = engine.get_template('x')
-        value = template.render(kwargs)
+        value = engine.render('x', kwargs, {}, {})
         assert expected == value
 
 except ImportError:  # pragma: nocover