#15896: unittest docs say import django.utils, should be djanto.test
-------------------------------+--------------------------------------
     Reporter:  RoySmith       |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  1.3
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by tuomas.salo@…):

 * status:  closed => new
 * ui_ux:   => 0
 * resolution:  invalid =>


Comment:

 A problem persists. The docs start by samples with `from django.utils
 import unittest`, but the example `tests.py` created by `python manage.py
 startapp` says `from django.test import TestCase`. That might confuse
 people starting to write tests. The docs do mention something about the
 difference,
 
[https://docs.djangoproject.com/en/dev/topics/testing/overview/#django.test.TestCase.client
 but only after a few pagefuls].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15896#comment:4>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to