Re: unit testing
On Monday, July 8, 2013 7:49:53 AM UTC-4, Larry....@gmail.com wrote:
Ah, I missed that in the docs. Thanks. When I renamed it to tests.py
it got picked up.
But in the django/contrib dirs (e.g. django/contrib/auth) the tests
are in a tests sub dir and are not called tests.py and they seem to
get run.
Django will run all tests imported from the tests module. Check out the __init__.py in django/contrib/auth/tests and you'll see it imports all of the tests from the other files in the test dir.
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home