In the example, animals would be the app modules which contains a models.py
file and/or tests.py. "classify" would be a function in either models.py
or tests.py with a doctest string as the comment.
$ ./manage.py test animals.Bear
The above would run the doctest comment on the class Bear in mo
In https://docs.djangoproject.com/en/1.4/topics/testing/ , individual tests
can be run. It works well for unit tests in tests.py. It should work for
doctest in model.py. I can not understand how to specify a doctest.
$ ./manage.py test animals.classify
Thanks,
ben
--
You received this messag
2 matches
Mail list logo