mirror of
https://github.com/django/django.git
synced 2025-11-28 22:49:09 +00:00
Fixed isolation of admin_views.tests.ValidXHTMLTests.
This commit is contained in:
parent
d811fa1d10
commit
c3e0dfe4cc
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue