mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #26973 -- Fixed views.static.serve() crash with show_indexes enabled.
This commit is contained in:
@@ -108,6 +108,10 @@ class StaticTests(SimpleTestCase):
|
||||
response = self.client.get('/%s/non_existing_resource' % self.prefix)
|
||||
self.assertEqual(404, response.status_code)
|
||||
|
||||
def test_index(self):
|
||||
response = self.client.get('/%s/' % self.prefix)
|
||||
self.assertContains(response, 'Index of /')
|
||||
|
||||
|
||||
class StaticHelperTest(StaticTests):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user