mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #18807 -- Made 404.html and 500.html optional
Thanks Aymeric Augustin for the report and Jannis Leidel for the review.
This commit is contained in:
@@ -628,15 +628,6 @@ class TemplateExceptionTests(TestCase):
|
||||
if hasattr(template_loader, 'reset'):
|
||||
template_loader.reset()
|
||||
|
||||
@override_settings(TEMPLATE_DIRS=(),)
|
||||
def test_no_404_template(self):
|
||||
"Missing templates are correctly reported by test client"
|
||||
try:
|
||||
response = self.client.get("/no_such_view/")
|
||||
self.fail("Should get error about missing template")
|
||||
except TemplateDoesNotExist:
|
||||
pass
|
||||
|
||||
@override_settings(
|
||||
TEMPLATE_DIRS=(os.path.join(os.path.dirname(__file__), 'bad_templates'),)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user