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):
|
||||
|
||||
|
@ -5799,6 +5798,7 @@ class ValidXHTMLTests(TestCase):
|
|||
self.client.force_login(self.superuser)
|
||||
|
||||
def test_lang_name_present(self):
|
||||
with translation.override(None):
|
||||
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
|
||||
self.assertNotContains(response, ' lang=""')
|
||||
self.assertNotContains(response, ' xml:lang=""')
|
||||
|
|
Loading…
Reference in New Issue