1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Moved jQuery to a vendor/jquery subdirectory.

This commit is contained in:
Trey Hunner
2015-06-06 16:32:54 -07:00
committed by Aymeric Augustin
parent 1daae25bdc
commit 788071e22d
7 changed files with 11 additions and 7 deletions

View File

@@ -1104,8 +1104,8 @@ class AdminJavaScriptTest(TestCase):
"""
with override_settings(DEBUG=False):
response = self.client.get(reverse('admin:admin_views_section_add'))
self.assertNotContains(response, 'jquery.js')
self.assertContains(response, 'jquery.min.js')
self.assertNotContains(response, 'vendor/jquery/jquery.js')
self.assertContains(response, 'vendor/jquery/jquery.min.js')
self.assertNotContains(response, 'prepopulate.js')
self.assertContains(response, 'prepopulate.min.js')
self.assertNotContains(response, 'actions.js')
@@ -1116,8 +1116,8 @@ class AdminJavaScriptTest(TestCase):
self.assertContains(response, 'inlines.min.js')
with override_settings(DEBUG=True):
response = self.client.get(reverse('admin:admin_views_section_add'))
self.assertContains(response, 'jquery.js')
self.assertNotContains(response, 'jquery.min.js')
self.assertContains(response, 'vendor/jquery/jquery.js')
self.assertNotContains(response, 'vendor/jquery/jquery.min.js')
self.assertContains(response, 'prepopulate.js')
self.assertNotContains(response, 'prepopulate.min.js')
self.assertContains(response, 'actions.js')