#24813: TemplateDoesNotExist is not raised in tests
-----------------------------------+--------------------
Reporter: pratyushmittal | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
It seems that the `TemplateDoesNotExist` error is not raised in Django 1.8
tests. Adding `{% include "MissingTemplate.html" %}` in templates will
pass the tests without an error, though it will raise an error on manual
browsing.
Demo Code: https://github.com/pratyushmittal/DummyProject
I have provided an example testcase above. In the DummyProject, running
`python manage.py test` should pass the tests, while `python manage.py
runserver` and opening `127.0.0.1:8000` should raise a
`TemplateDoesNotExist` error.
--
Ticket URL: <https://code.djangoproject.com/ticket/24813>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/057.440051da577461c8e089ba83582dc4a1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.