Re: [Django] #15896: unittest docs say import django.utils, should be djanto.test

2013-03-07 Thread Django
#15896: unittest docs say import django.utils, should be djanto.test
---+--
 Reporter:  RoySmith   |Owner:  nobody
 Type:  Bug|   Status:  closed
Component:  Documentation  |  Version:  1.3
 Severity:  Normal |   Resolution:  wontfix
 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 jacob):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 They really are two different things, used for two different purposes. I'm
 going to close this again; if you feel strongly, please take it to django-
 dev for discussion.

-- 
Ticket URL: 
Django 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #15896: unittest docs say import django.utils, should be djanto.test

2013-03-06 Thread Django
#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: 
Django 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #15896: unittest docs say import django.utils, should be djanto.test

2011-04-25 Thread Django
#15896: unittest docs say import django.utils, should be djanto.test
--+---
   Reporter:  RoySmith|  Owner:  nobody
   Type:  Bug | Status:  closed
  Milestone:  |  Component:  Documentation
Version:  1.3 |   Severity:  Normal
 Resolution:  invalid |   Keywords:
   Triage Stage:  Unreviewed  |  Has patch:  0
Needs documentation:  0   |Needs tests:  0
Patch needs improvement:  0   |  Easy pickings:  1
--+---
Changes (by jonash):

 * status:  reopened => closed
 * resolution:   => invalid


Comment:

 It's a different thing. `django.utils.unittest` is a copy of the
 `unittest2` package for Python < 2.7. `django.test` holds Django's special
 testsuite helpers.

 In most cases you don't need to import anything from
 `django.utils.unittest`. It's just some kind of warning to prevent you
 from using `import unittest`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #15896: unittest docs say import django.utils, should be djanto.test

2011-04-25 Thread Django
#15896: unittest docs say import django.utils, should be djanto.test
--+---
   Reporter:  RoySmith|  Owner:  nobody
   Type:  Bug | Status:  reopened
  Milestone:  |  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
--+---
Changes (by RoySmith):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Hmm, OK, I read this a little more carefully and see what had me going.
 The docs say:

 from django.utils import unittest

 but the sample tests.py file says:

 from django.test import TestCase

 this is a little confusing.  It would be more obvious if the sample and
 the docs did it the same way.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #15896: unittest docs say import django.utils, should be djanto.test

2011-04-25 Thread Django
#15896: unittest docs say import django.utils, should be djanto.test
--+---
   Reporter:  RoySmith|  Owner:  nobody
   Type:  Bug | Status:  closed
  Milestone:  |  Component:  Documentation
Version:  1.3 |   Severity:  Normal
 Resolution:  invalid |   Keywords:
   Triage Stage:  Unreviewed  |  Has patch:  0
Needs documentation:  0   |Needs tests:  0
Patch needs improvement:  0   |  Easy pickings:  1
--+---
Changes (by jonash):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 Ever tried to do so?


 {{{
 >>> from django.test import unittest
 
 Traceback (most recent call last):
   File "", line 1, in 
 ImportError: cannot import name unittest
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #15896: unittest docs say import django.utils, should be djanto.test

2011-04-25 Thread Django
#15896: unittest docs say import django.utils, should be djanto.test
--+---
 Reporter:  RoySmith  |  Owner:  nobody
 Type:  Bug   | Status:  new
Milestone:|  Component:  Documentation
  Version:  1.3   |   Severity:  Normal
 Keywords:|   Triage Stage:  Unreviewed
Has patch:  0 |  Easy pickings:  1
--+---
 At http://docs.djangoproject.com/en/1.3/topics/testing/#writing-unit-
 tests, it says:

 from django.utils import unittest

 It should import from django.test, no?  It's wrong in the release notes
 too.  The sample tests.py file gets it right.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.