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,9 +5798,10 @@ 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):
|
||||||
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
|
with translation.override(None):
|
||||||
self.assertNotContains(response, ' lang=""')
|
response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
|
||||||
self.assertNotContains(response, ' xml:lang=""')
|
self.assertNotContains(response, ' lang=""')
|
||||||
|
self.assertNotContains(response, ' xml:lang=""')
|
||||||
|
|
||||||
|
|
||||||
@override_settings(ROOT_URLCONF='admin_views.urls', USE_THOUSAND_SEPARATOR=True)
|
@override_settings(ROOT_URLCONF='admin_views.urls', USE_THOUSAND_SEPARATOR=True)
|
||||||
|
|
Loading…
Reference in New Issue