1
0
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:
Claude Paroz
2012-09-30 23:16:14 +02:00
parent 864a0514b8
commit 8bd7b598b6
10 changed files with 58 additions and 50 deletions

View File

@@ -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'),)
)