mirror of
https://github.com/django/django.git
synced 2025-03-12 10:22:37 +00:00
Fixed isolation of admin_views.tests.ValidXHTMLTests.
This commit is contained in:
parent
d811fa1d10
commit
c3e0dfe4cc
@ -5787,7 +5787,6 @@ class AdminDocsTest(TestCase):
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
USE_I18N=False,
|
|
||||||
)
|
)
|
||||||
class ValidXHTMLTests(TestCase):
|
class ValidXHTMLTests(TestCase):
|
||||||
|
|
||||||
@ -5799,6 +5798,7 @@ class ValidXHTMLTests(TestCase):
|
|||||||
self.client.force_login(self.superuser)
|
self.client.force_login(self.superuser)
|
||||||
|
|
||||||
def test_lang_name_present(self):
|
def test_lang_name_present(self):
|
||||||
|
with translation.override(None):
|
||||||
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
|
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
|
||||||
self.assertNotContains(response, ' lang=""')
|
self.assertNotContains(response, ' lang=""')
|
||||||
self.assertNotContains(response, ' xml:lang=""')
|
self.assertNotContains(response, ' xml:lang=""')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user