#15195 closed (wontfix)
TestFramework doesn't set DEBUG to TRUE
Reported by: | jbcurtin | Owned by: | jbcurtin |
---|---|---|---|
Component: | Testing framework | Version: | 1.2 |
Severity: | Keywords: | test conf debug settings | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Qucikfix:
from django.conf import settings
settings.DEBUG = True
Feel free to tell me were I need to go to register for an account to make the change myself and submit it to the code base.
Note:
See TracTickets
for help on using tickets.
This is by design: http://docs.djangoproject.com/en/dev/topics/testing/#other-test-conditions
Regardless of the value of the DEBUG setting in your configuration file, all Django tests run with DEBUG=False. This is to ensure that the observed output of your code matches what will be seen in a production setting.