[Django] #23026: Running a testcase

7 views
Skip to first unread message

Django

unread,
Jul 14, 2014, 12:54:21 PM7/14/14
to django-...@googlegroups.com
#23026: Running a testcase
-------------------------------+-----------------------
Reporter: amertkara@… | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.5
Severity: Normal | Keywords: Nosetests
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------
In the documentation
https://docs.djangoproject.com/en/1.5/topics/testing/overview/, running a
testcase is given as `./manage.py test animals.AnimalTestCase` which is
inaccurate. Running a testcase class is possible "./manage.py test
animals:AnimalTestCase" or `./manage.py test
animals.AnimalTestCase.test_animals_can_speak`.

--
Ticket URL: <https://code.djangoproject.com/ticket/23026>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 14, 2014, 10:52:14 PM7/14/14
to django-...@googlegroups.com
#23026: Running a testcase
-------------------------------+--------------------------------------
Reporter: amertkara@… | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.5
Severity: Normal | Resolution: invalid

Keywords: Nosetests | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by russellm):

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


Comment:

The documentation you have referenced is for Django 1.5, which used "old
style" test discovery; if you're using Django 1.5, the syntax described is
completely accurate. The syntax changed in Django 1.6, and the 1.6 docs
reflect that change.

The "colon" syntax is not accurate for any version, AFAIK - to the best of
my knowledge, that's a Nose extension, and has nothing to do with Django's
test suite.

--
Ticket URL: <https://code.djangoproject.com/ticket/23026#comment:1>

Reply all
Reply to author
Forward
0 new messages