Django dropped direct_to_template.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from django.utils import translation
|
||||
from django.views.generic.simple import direct_to_template
|
||||
|
||||
from mock import patch, sentinel
|
||||
from nose.tools import eq_
|
||||
@@ -7,13 +6,6 @@ from nose.tools import eq_
|
||||
from jingo import get_env, render_to_string
|
||||
|
||||
|
||||
def test_direct_to_template():
|
||||
response = direct_to_template(sentinel.request,
|
||||
'jinja_app/test_nonoverride.html',
|
||||
{'x': 1})
|
||||
eq_('HELLO', response.content)
|
||||
|
||||
|
||||
def test_template_substitution_crash():
|
||||
translation.activate('xx')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user