aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/tests
diff options
context:
space:
mode:
authorRyan Kaskel <dev@ryankaskel.com>2016-02-17 16:40:45 +0000
committerRyan Kaskel <dev@ryankaskel.com>2016-02-17 16:40:45 +0000
commit60f29e9b1a055c2f927fae56c15e48918d5e76fd (patch)
tree089a93d00a8480f3e40291e5d4df5fdac2ea8455 /wkhtmltopdf/tests
parent87be0aaafb59fca5540a300c8e6262fbe023fce5 (diff)
downloaddjango-wkhtmltopdf-60f29e9b1a055c2f927fae56c15e48918d5e76fd.tar.gz
django-wkhtmltopdf-60f29e9b1a055c2f927fae56c15e48918d5e76fd.tar.bz2
django-wkhtmltopdf-60f29e9b1a055c2f927fae56c15e48918d5e76fd.zip
Remove dependency on Django template engine
Diffstat (limited to 'wkhtmltopdf/tests')
-rw-r--r--wkhtmltopdf/tests/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wkhtmltopdf/tests/tests.py b/wkhtmltopdf/tests/tests.py
index c15d88f..8f40c5e 100644
--- a/wkhtmltopdf/tests/tests.py
+++ b/wkhtmltopdf/tests/tests.py
@@ -203,7 +203,8 @@ class TestViews(TestCase):
self.assertTrue(response.has_header('Content-Disposition'))
footer_template = loader.get_template(self.footer_template)
- tempfile = render_to_temporary_file(footer_template, context=RequestContext(request, context))
+ tempfile = render_to_temporary_file(footer_template, context=context,
+ request=request)
tempfile.seek(0)
footer_content = smart_str(tempfile.read())
footer_content = make_absolute_paths(footer_content)