mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Renamed RemovedInDjangoXYWarnings for new roadmap.
Forwardport of ae1d663b79
from stable/1.8.x plus more.
This commit is contained in:
parent
e73842a95f
commit
aaacaeb096
124 changed files with 455 additions and 448 deletions
|
@ -21,7 +21,7 @@ from django.test.client import RedirectCycleError, RequestFactory, encode_file
|
|||
from django.test.utils import ContextList, str_prefix
|
||||
from django.utils._os import upath
|
||||
from django.utils.deprecation import (
|
||||
RemovedInDjango20Warning, RemovedInDjango21Warning,
|
||||
RemovedInDjango20Warning, RemovedInDjango110Warning,
|
||||
)
|
||||
from django.utils.translation import ugettext_lazy
|
||||
|
||||
|
@ -520,11 +520,11 @@ class AssertRedirectsTests(SimpleTestCase):
|
|||
with self.assertRaises(AssertionError):
|
||||
self.assertRedirects(response, 'http://testserver/secure_view/', status_code=302)
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango21Warning)
|
||||
@ignore_warnings(category=RemovedInDjango20Warning)
|
||||
def test_full_path_in_expected_urls(self):
|
||||
"""
|
||||
Test that specifying a full URL as assertRedirects expected_url still
|
||||
work as backwards compatible behavior until Django 2.1.
|
||||
work as backwards compatible behavior until Django 2.0.
|
||||
"""
|
||||
response = self.client.get('/redirect_view/')
|
||||
self.assertRedirects(response, 'http://testserver/get_view/')
|
||||
|
@ -1024,7 +1024,7 @@ class ContextTests(TestDataMixin, TestCase):
|
|||
'python', 'dolly'},
|
||||
l.keys())
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango20Warning)
|
||||
@ignore_warnings(category=RemovedInDjango110Warning)
|
||||
def test_15368(self):
|
||||
# Need to insert a context processor that assumes certain things about
|
||||
# the request instance. This triggers a bug caused by some ways of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue