Re: unit testing
On Mon, Jul 8, 2013 at 8:59 AM, <ben@azundo.com> wrote:
>
>
> 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.
I had seen the __init__ but I thought the tests had to be in the same
dir as the models file.
--
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