aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Ordoquy2014-01-28 18:54:49 +0100
committerXavier Ordoquy2014-01-28 18:54:49 +0100
commit23a20160c4db0466c15f1a4d1edfda5004ebb551 (patch)
tree2009eb641f31a45c6c8c2c5c860733e3bcfcb33a
parentda89cfc9373c03115b1bc2f62a7f974363c6c050 (diff)
downloaddjango-rest-framework-23a20160c4db0466c15f1a4d1edfda5004ebb551.tar.bz2
Mock updated as Django’s get_template now has two arguments.
-rw-r--r--rest_framework/tests/test_htmlrenderer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_htmlrenderer.py b/rest_framework/tests/test_htmlrenderer.py
index 8957a43c..bb87272d 100644
--- a/rest_framework/tests/test_htmlrenderer.py
+++ b/rest_framework/tests/test_htmlrenderer.py
@@ -50,7 +50,7 @@ class TemplateHTMLRendererTests(TestCase):
"""
self.get_template = django.template.loader.get_template
- def get_template(template_name):
+ def get_template(template_name, dirs=None):
if template_name == 'example.html':
return Template("example: {{ object }}")
raise TemplateDoesNotExist(template_name)