diff options
author | Tim Graham <timograham@gmail.com> | 2015-09-05 10:25:43 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:11 -0400 |
commit | 9114fe8adabe626619665c9853ba952798da5530 (patch) | |
tree | 0c25d35384703efc8c76f1f035a26ed9461a7a6c /tests/shortcuts | |
parent | 4811f09fa39d5293944dfebfbfaf6849828d2dcd (diff) | |
download | django-9114fe8adabe626619665c9853ba952798da5530.tar.gz |
Removed support for passing a context to a generic Template.render().
Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
Diffstat (limited to 'tests/shortcuts')
-rw-r--r-- | tests/shortcuts/tests.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/shortcuts/tests.py b/tests/shortcuts/tests.py index 9712858c70..ec79226446 100644 --- a/tests/shortcuts/tests.py +++ b/tests/shortcuts/tests.py @@ -1,6 +1,5 @@ -from django.test import SimpleTestCase, ignore_warnings, override_settings +from django.test import SimpleTestCase, override_settings from django.test.utils import require_jinja2 -from django.utils.deprecation import RemovedInDjango110Warning @override_settings( @@ -39,16 +38,6 @@ class ShortcutTests(SimpleTestCase): response = self.client.get('/render_to_response/using/?using=jinja2') self.assertEqual(response.content, b'Jinja2\n') - @ignore_warnings(category=RemovedInDjango110Warning) - def test_render_to_response_with_context_instance_misuse(self): - """ - For backwards-compatibility, ensure that it's possible to pass a - RequestContext instance in the dictionary argument instead of the - context_instance argument. - """ - response = self.client.get('/render_to_response/context_instance_misuse/') - self.assertContains(response, 'context processor output') - def test_render(self): response = self.client.get('/render/') self.assertEqual(response.status_code, 200) |