summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-03 07:30:14 -0400
committerTim Graham <timograham@gmail.com>2014-06-03 07:30:14 -0400
commit4445d36d471aae81086ed785536687a92e5aaa6d (patch)
tree763e51e8d07c10047921e33c852bdfe2e60369a6 /tests/template_tests
parente0208944708aa9e1034531a047a731b1c93b50c6 (diff)
Fixed #22384 -- Deprecated reversing URLs by dotted path.
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index b81e63545d..b418cdac11 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -529,8 +529,7 @@ class TemplateTests(TestCase):
# Warm the URL reversing cache. This ensures we don't pay the cost
# warming the cache during one of the tests.
- urlresolvers.reverse('template_tests.views.client_action',
- kwargs={'id': 0, 'action': "update"})
+ urlresolvers.reverse('named.client', args=(0,))
for name, vals in tests:
if isinstance(vals[2], tuple):
@@ -575,6 +574,7 @@ class TemplateTests(TestCase):
try:
with warnings.catch_warnings():
# Ignore deprecations of using the wrong number of variables with the 'for' tag.
+ # and warnings for {% url %} reversing by dotted path
warnings.filterwarnings("ignore", category=RemovedInDjango20Warning, module="django.template.defaulttags")
output = self.render(test_template, vals)
except ShouldNotExecuteException: