#22254: Testing documentation doesn't make it clear that django.setup() needs 
to be
called with setup_test_environment
--------------------------------+-------------------------
     Reporter:  peter.landry@…  |      Owner:  nobody
         Type:  Uncategorized   |     Status:  new
    Component:  Documentation   |    Version:  1.7-alpha-2
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+-------------------------
 https://docs.djangoproject.com/en/dev/topics/testing/advanced/#running-
 tests-outside-the-test-runner

 It's not specific to testing, but it seems that we should mention the
 necessity of calling `django.setup()` in the directions for running tests
 outside of `manage.py`. I've submitted a pull request with a simple
 documentation change: https://github.com/django/django/pull/2419

 This may require some more discussion, though. As mjtamlyn points out,
 another solution could be to include `django.setup()` in
 `setup_test_environment()`. The call to `django.setup()` could also be
 moved into the example for using `setup_test_environment()` rather than a
 warning in its own.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22254>
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/065.779252dae9cea4613ba89f8bb133da3f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to