Opened 10 years ago

Closed 10 years ago

#23026 closed Bug (invalid)

Running a testcase

Reported by: amertkara@… Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords: Nosetests
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In the documentation, running a testcase is given as ./ test animals.AnimalTestCase which is inaccurate. Running a testcase class is possible "./ test animals:AnimalTestCase" or ./ test animals.AnimalTestCase.test_animals_can_speak.

Change History (1)

comment:1 by Russell Keith-Magee, 10 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top