#29758: Document testing custom error handlers
-------------------------------------------------+------------------------
               Reporter:  Adam (Chainz) Johnson  |          Owner:  nobody
                   Type:  Cleanup/optimization   |         Status:  new
              Component:  Documentation          |        Version:  2.1
               Severity:  Normal                 |       Keywords:
           Triage Stage:  Unreviewed             |      Has patch:  0
    Needs documentation:  0                      |    Needs tests:  0
Patch needs improvement:  0                      |  Easy pickings:  0
                  UI/UX:  0                      |
-------------------------------------------------+------------------------
 As discussed in #29642, testing custom error handlers is trickier than it
 appears at first sight - to accurately simulate their arguments, it's best
 to actually raise the triggering exceptions, as Django's own test suite
 does:
 
https://github.com/django/django/blob/master/tests/handlers/tests_custom_error_handlers.py#L23

 This could be documented to help users setting out to customize the errors
 Django returns

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29758>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.d66c9117b177332b4e3c2b27bdef50d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to